[systemd-devel] systemd DBus services exit when they have clients

Lennart Poettering lennart at poettering.net
Fri Nov 14 08:35:26 PST 2014


On Fri, 14.11.14 14:43, Stef Walter (stefw at redhat.com) wrote:

> Is it intentional (or just laziness :D) that systemd DBus services
> like hostnamed, timedated and friends all exit after a timeout even
> while callers that have invoked their methods are still on the bus?
> 
> Don't get me wrong, I like services that exit when not in use. But I
> sorta imagined 'not in use' as 'no more callers around'.
> 
> In Cockpit we work around this by Ping()ing the services we want to
> talk to (and get PropertiesChanged from) during our user session.
> 
> If this is a bug ... then maybe I'll look into coming up with a patch.

Those services are stateless really... Nothing is lost when they
die. And when you call them they are automatically started, so that
the client doesn't need to care really.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list