summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2010-09-03 15:12:19 +0200
committerLennart Poettering <lennart@poettering.net>2010-09-06 03:21:17 +0200
commit8a440f7441ac47e0828ce978c7f105dca845f1cf (patch)
tree0bb70e727f8dec7b142ce4d1e9aec1c3280cf71d
parent929d9567d96992c01ebf8bbc0d40d9dc14677ca5 (diff)
downloaddbus-8a440f7441ac47e0828ce978c7f105dca845f1cf.tar.gz
systemd: enable the dbus service unconditionally
Since D-Bus is a core part of the OS don't make this service optional.
-rw-r--r--bus/Makefile.am5
-rw-r--r--bus/dbus.service.in4
-rw-r--r--bus/dbus.socket.in3
-rw-r--r--configure.in6
4 files changed, 9 insertions, 9 deletions
diff --git a/bus/Makefile.am b/bus/Makefile.am
index a5889ff1..5c4fb15b 100644
--- a/bus/Makefile.am
+++ b/bus/Makefile.am
@@ -223,6 +223,11 @@ if HAVE_SYSTEMD
# Install dbus.socket as default implementation of a D-Bus stack
$(mkinstalldirs) $(DESTDIR)$(systemdsystemunitdir)/dbus.target.wants
$(LN_S) ../dbus.socket $(DESTDIR)$(systemdsystemunitdir)/dbus.target.wants/dbus.socket
+# Unconditionally enable D-Bus on systemd installations
+ $(mkinstalldirs) $(DESTDIR)$(systemdsystemunitdir)/sockets.target.wants
+ $(LN_S) ../dbus.socket $(DESTDIR)$(systemdsystemunitdir)/sockets.target.wants/dbus.socket
+ $(mkinstalldirs) $(DESTDIR)$(systemdsystemunitdir)/multi-user.target.wants
+ $(LN_S) ../dbus.service $(DESTDIR)$(systemdsystemunitdir)/multi-user.target.wants/dbus.service
endif
#### Init scripts fun
diff --git a/bus/dbus.service.in b/bus/dbus.service.in
index 173fcd61..399306f6 100644
--- a/bus/dbus.service.in
+++ b/bus/dbus.service.in
@@ -8,7 +8,3 @@ ExecStartPre=@EXPANDED_BINDIR@/dbus-uuidgen --ensure
ExecStartPre=-/bin/rm -f @DBUS_SYSTEM_PID_FILE@
ExecStart=@EXPANDED_BINDIR@/dbus-daemon --system --address=systemd: --nofork --systemd-activation
ExecReload=@EXPANDED_BINDIR@/dbus-send --print-reply --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig
-
-[Install]
-WantedBy=multi-user.target
-Also=dbus.socket
diff --git a/bus/dbus.socket.in b/bus/dbus.socket.in
index a4bb5f2c..74cbe582 100644
--- a/bus/dbus.socket.in
+++ b/bus/dbus.socket.in
@@ -3,6 +3,3 @@ Description=D-Bus System Message Bus Socket
[Socket]
ListenStream=@DBUS_SYSTEM_SOCKET@
-
-[Install]
-WantedBy=sockets.target
diff --git a/configure.in b/configure.in
index 8a7dc6f3..2d6e3ccf 100644
--- a/configure.in
+++ b/configure.in
@@ -1388,8 +1388,10 @@ AM_CONDITIONAL(DBUS_INIT_SCRIPTS_CYGWIN, test x$with_init_scripts = xcygwin)
AC_ARG_WITH([systemdsystemunitdir],
AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
[], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
-AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
-AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir"])
+if test "x$with_systemdsystemunitdir" != xno; then
+ AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
+fi
+AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ])
##### Set up location for system bus socket
if ! test -z "$with_system_socket"; then