diff options
author | Michael Biebl <mbiebl@gmail.com> | 2007-12-08 22:45:42 -0500 |
---|---|---|
committer | William Jon McCann <mccann@jhu.edu> | 2007-12-08 22:45:42 -0500 |
commit | eb610a07a17db29138df50cafa4cf131a645332e (patch) | |
tree | 68001e9189604f8ccc6cfbb2ea350aff7d75398d | |
parent | 7d167e65868cb2aa40273ee8ccd33cca5968438b (diff) |
start CK service on-demand using D-Bus system activation
the attached patch installs a D-Bus system service file. This way the
CK service can be started on demand. This obviously makes the sysv
init script obsolete.
Requirements are dbus >= 1.1.2
-rw-r--r-- | data/Makefile.am | 9 | ||||
-rw-r--r-- | data/org.freedesktop.ConsoleKit.service.in | 4 |
2 files changed, 12 insertions, 1 deletions
diff --git a/data/Makefile.am b/data/Makefile.am index 947f762..9516c3b 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -16,6 +16,12 @@ initd_SCRIPTS= \ $(NULL) endif +servicedir = $(datadir)/dbus-1/system-services +service_in_files = org.freedesktop.ConsoleKit.service.in +service_DATA = $(service_in_files:.service.in=.service) + +$(service_DATA): $(service_in_files) Makefile + $(edit) $< >$@ ConsoleKit: ConsoleKit.in Makefile $(edit) $< >$@ @@ -30,10 +36,11 @@ EXTRA_DIST = \ $(dbusconf_DATA) \ $(seat_DATA) \ $(SCRIPT_IN_FILES) \ + $(service_in_files) \ $(NULL) MAINTAINERCLEANFILES = \ *~ \ Makefile.in -CLEANFILES = ConsoleKit +CLEANFILES = ConsoleKit $(service_DATA) diff --git a/data/org.freedesktop.ConsoleKit.service.in b/data/org.freedesktop.ConsoleKit.service.in new file mode 100644 index 0000000..ec2128c --- /dev/null +++ b/data/org.freedesktop.ConsoleKit.service.in @@ -0,0 +1,4 @@ +[D-BUS Service] +Name=org.freedesktop.ConsoleKit +Exec=@sbindir@/console-kit-daemon +User=root |