← Back to team overview

ubuntu-accomplishments-contributors team mailing list archive

Re: Daemon launcher

 

On 03/08/12 12:59, Rafał Cieślak wrote:
It goes without saying that it is not very elegant, and requires to
remember all the arguments. But there is more, consider how we stop
it:
      killall -9 twistd
Ouch. Don't do that, as you note :)
Thoughts, ideas? Comments welcome :)

The daemon is on d-bus, right? Why not expose an "exit" method over D-Bus and have the script call that to stop it? The daemon can just stop the reactor when its exit method is called, and then it'll cleanly exit.

sil



Follow ups

References