[InitKit] InitKit
Lennart Poettering
lennart at poettering.net
Wed Dec 19 13:10:18 PST 2007
On Tue, 11.12.07 21:08, Scott James Remnant (scott at ubuntu.com) wrote:
> InitKit is a half-way step. It's a freedesktop.org project that will
> host the specifications, requirements and some implementations for doing
> "Init with D-Bus".
Great stuff!
> First up: terminology. What do we call what InitKit manages?
>
> "service" is obvious, but has connotations of supervision; it also
> overlaps with "D-Bus Service Activation" which is likely to scare that
> group into believing we're trying to replace D-Bus instead of use it
> more.
I am all for "Service", but then I am not a native speaker, so please
ignore my opinion on this.
> bus name: org.freedesktop.Init
> object: /org/freedesktop/Init
> interface: org.freedesktop.Init
org.freedesktop.InitKit
And the "core" object should just be "/". Makes introspection easier.
> Or do we build for extension?
>
> FindServiceByName (String name)
>
> which returns an object that implements org.freedesktop.Service, which
> has the following methods:
>
> Start ()
> Stop ()
Yes please. We might need "GetStatus()" and "Reload()" here as well, so
it makes a lot of sense to have these as seperate objects. I mean,
this is all what OO is about, isn't it?
> Any immediate suggestions for additional functionality for the first
> draft? That gives us the most basic of basic abilities, enough to
> demonstrate the concept, and enough to implement dbus activation with
> it.
What about ListServices()?
Or, actually, we could just say that people are supposed to use
introspection to find subobjects of "/". Would work too, and be very
very OOish.
Lennart
--
Lennart Poettering Red Hat, Inc.
lennart [at] poettering [dot] net ICQ# 11060553
http://0pointer.net/lennart/ GnuPG 0x1A015CC4
More information about the InitKit
mailing list