[PATCH 0/5] Support service activation through Upstart

Scott James Remnant scott at netsplit.com
Fri Dec 24 17:35:16 PST 2010


On Fri, Dec 24, 2010 at 10:54 PM, Colin Walters <walters at verbum.org> wrote:
> On Wed, Dec 22, 2010 at 10:27 AM, Scott James Remnant
> <scott at netsplit.com> wrote:
>> These patches add support for service activation through Upstart.
>
> What do you guys think about having DBus just try every activation
> request through init first?  In other words, we send a message like:
>
> org.freedesktop.Init.TryToActivateDesktopFile
> string:/usr/share/dbus-1/system-services/foo.desktop
>
> and init replies "yes", "no", "error".   Actually even better, init
> just always handles launching a task like this, and if there isn't a
> corresponding native item (upstart job, unit file, whatever), init
> just make one up.
>
> It's not functionally different from dbus launching it really.
>
That's actually why I want to pass the Exec and User lines over to
Upstart, because then we can do exactly this by default.  Though I
would rather we didn't pass a path across like that, there's no
guarantee that init and d-bus are even in the same filesystem
namespace, for example.

The orthogonal question is then whether D-Bus should also send the
activation request when it doesn't have a .service file?

Scott


More information about the dbus mailing list