summaryrefslogtreecommitdiff
path: root/dbus
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2013-03-26 19:16:59 +0100
committerStef Walter <stefw@gnome.org>2013-03-26 19:16:59 +0100
commit42bf34cee6512af6214abb0a14e26f8cec6ac72d (patch)
tree951ed828f09cb681b19f09f3bec0d175a5738138 /dbus
parentf0bc3cfd5eea51e313b04dbeb8c473e222aa247f (diff)
Fine tune the systemd integration
* Use standard --without-systemd-journal syntax and fix some corner cases configuring that. * Install a systemd unit file. https://bugs.freedesktop.org/show_bug.cgi?id=56012
Diffstat (limited to 'dbus')
-rw-r--r--dbus/Makefile.am9
-rw-r--r--dbus/realmd.service.in8
2 files changed, 17 insertions, 0 deletions
diff --git a/dbus/Makefile.am b/dbus/Makefile.am
index ba5ee62..8b47db5 100644
--- a/dbus/Makefile.am
+++ b/dbus/Makefile.am
@@ -40,6 +40,13 @@ $(DBUS_GENERATED): org.freedesktop.realmd.xml
--generate-c-code realm-dbus-generated \
--c-namespace RealmDbus $<
+systemdunit_in_files = realmd.service.in
+
+if WITH_SYSTEMD
+systemdunitdir = $(SYSTEMD_UNIT_DIR)
+systemdunit_DATA = $(systemdunit_in_files:.service.in=.service)
+endif
+
# ------------------------------------------------------------------
EXTRA_DIST = \
@@ -47,12 +54,14 @@ EXTRA_DIST = \
$(dbusservice_DATA) \
$(provider_DATA) \
$(service_in_files) \
+ $(systemdunit_in_files) \
$(NULL)
CLEANFILES = \
$(BUILT_SOURCES) \
$(DBUS_GENERATED) \
$(service_DATA) \
+ $(systemdunit_DATA) \
*.gcno \
*.gcda \
$(NULL)
diff --git a/dbus/realmd.service.in b/dbus/realmd.service.in
new file mode 100644
index 0000000..b3bcf7a
--- /dev/null
+++ b/dbus/realmd.service.in
@@ -0,0 +1,8 @@
+[Unit]
+Description=Realm and Domain Configuration
+Documentation=man:realmd(8)
+
+[Service]
+Type=dbus
+BusName=org.freedesktop.realmd
+ExecStart=@privatedir@/realmd