← Back to team overview

ubuntu-accomplishments-contributors team mailing list archive

Re: Daemon launcher

 

On Fri, Aug 3, 2012 at 5:31 AM, Rafał Cieślak
<rafalcieslak256@xxxxxxxxxx> wrote:
> 2012/8/3 Stuart Langridge <stuart.langridge@xxxxxxxxxxxxx>:
>> 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.
>
> That makes sense too! I imagine the 'accomplisments-daemon --stop'
> might call this "exit" method to cause the daemon to exit gracefully.

I definitely agree that we should improve on how the daemon is started
and stopped. Rafal, I think your approach makes sense, and if we can
equip our DBUS ABI with exit() that would make sense too.

I was under the impression though that twistd itself could solve these
issues with --start --stop and --reload, but I think we want to make
the script handle this, that is fine.

Thanks, Rafal!

    Jono

-- 
Jono Bacon
Ubuntu Community Manager
www.ubuntu.com / www.jonobacon.org
www.identi.ca/jonobacon www.twitter.com/jonobacon


Follow ups

References