Restart Kallithea button

Issue #92 closed
Sam Jaques created an issue

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

Comments (7)

  1. Mads Kiilerich

    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.

  2. Sam Jaques reporter

    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 ;-)

  3. pyloor

    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)
  4. Mads Kiilerich
    • 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.

  5. Thomas De Schampheleire

    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.

  6. Sam Jaques reporter

    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.

  7. Log in to comment