activation and shutdown
hadess at hadess.net
Thu Nov 5 04:16:36 PST 2009
On Thu, 2009-11-05 at 10:56 +0100, Kees Jongenburger wrote:
> I am making use of DBus activation to launch processes when needed.
> Overall I followed Raphaël Slinckx tutorial that can be found here
> Next to activation I also would like my application to shutdown when
> "done". How is this best done? I am mainly worried about
> synchronization issues for example
> what happens if I decide to shutdown my service but at the same time
> somebody calls on me? will activation take this into account?
> The most simple way I can shutdown now is to simply stop running after
> one method is served will that work?
In fprintd (and a number of other daemons), we exit 30 seconds after the
last client has exited.
Take a look at the fprintd code, the interesting bits use
More information about the dbus