[PATCH 1/5] activation: change SystemdService to ActivationRequest

Simon McVittie simon.mcvittie at collabora.co.uk
Thu Jan 6 03:46:24 PST 2011


On Thu, 06 Jan 2011 at 01:52:48 +0000, Scott James Remnant wrote:
> The inverse though would be an upstream D-Bus service without the
> systemd name wouldn't work for systemd?

As far as I can see (I'm not an expert on this code), systemd activation
is opt-in (if you don't specify the systemd name, the dbus activation code
is always used) whereas you want Upstart activation to be mandatory if Upstart
is present (all activations are handed off to Upstart, and the dbus activation
code is never used unless Upstart is missing).

So, upstream D-Bus services with no systemd name would *work*, they just
wouldn't benefit from systemd, the same as upstream D-Bus services that don't
provide a systemd unit file. Distributions that (can) use systemd could
put a check in (their equivalent of) lintian, perhaps? Pseudocode:

if (we have a systemd unit "S" &&
    we have a D-Bus service "D" &&
    D doesn't have a systemd name specified)
  warn ("D-Bus service $D is missing a systemd name, perhaps it should use $S?")

    Simon


More information about the dbus mailing list