Kallithea issues archive

Issue #92: Restart Kallithea button

Reported by: Sam Jaques
State: closed
Created on: 2015-01-28 10:22
Updated on: 2015-03-25 11:55

Description

I would be nice to easily restart the Kallithea service in the webinterface.

Attachments

Comments

Comment by Mads Kiilerich, on 2015-01-28 12:17

Considering that Kallithea just is an wsgi application running inside a web server, I don't see how that could fit it.

But when running 'paster serve' in development mode, it will automatically restart when files are changing.

Comment by Sam Jaques, on 2015-01-29 16:03

Thanks for your answer. I had to restart when changing the .ini file (I guess your reason is the same). Another way would be to get as much parameters from the ini file into the admin configuration page, to prevent a restart ;-)

Comment by pyloor, on 2015-03-23 02:57

with apache and mod_wsgi in deamon mode a restart button is possible:

if environ['mod_wsgi.process_group'] != '':
    import signal, os
    os.kill(os.getpid(), signal.SIGINT)

Comment by Mads Kiilerich, on 2015-03-23 14:45

  • if you only have one worker process.

There is no way around knowing the stack you are operating. Attempts at making "helpful" layering violations will often do more harm than good.

Comment by Thomas De Schampheleire, on 2015-03-25 09:28

When using paster, use

paster serve --reload rc.ini

which will automatically reload when changes are made to either the .ini file or to the sources (in develop mode).

Given the feedback on this issue, I would say to close it.

Comment by Sam Jaques, on 2015-03-25 11:54

Yes, I'm rather satisfied with the reload command. Killing the pid doesn't seem a good idea every time you want to reload Kallithea.

Comment by Sam Jaques, on 2015-03-25 11:55