3 # messagebus: The D-BUS systemwide message bus
6 # description: This is a daemon which broadcasts notifications of system events \
7 # and other messages. See http://www.freedesktop.org/software/dbus/
9 # processname: dbus-daemon
10 # pidfile: @DBUS_SYSTEM_PID_FILE@
13 # Provides: messagebus
14 # Required-Start: $syslog $local_fs
15 # Required-Stop: $syslog $local_fs
16 # Default-Start: 2 3 4 5
18 # Short-Description: The D-Bus systemwide message bus
19 # Description: This is a daemon which broadcasts notifications of system
20 # events and other messages. See http://www.freedesktop.org/software/dbus
24 [ -x @EXPANDED_BINDIR@/dbus-daemon ] || exit 0
26 # Source function library.
27 . @EXPANDED_SYSCONFDIR@/rc.d/init.d/functions
29 # so we can rearrange this easily
30 processname=dbus-daemon
31 servicename=messagebus
36 echo -n $"Starting system message bus: "
37 if [ -x @EXPANDED_BINDIR@/dbus-uuidgen ] ; then
38 @EXPANDED_BINDIR@/dbus-uuidgen --ensure
41 daemon --check $servicename $processname --system
44 [ $RETVAL -eq 0 ] && touch @EXPANDED_LOCALSTATEDIR@/lock/subsys/$servicename
48 echo -n $"Stopping system message bus: "
50 ## we don't want to kill all the per-user $processname, we want
51 ## to use the pid file *only*; because we use the fake nonexistent
52 ## program name "$servicename" that should be safe-ish
53 killproc $servicename -TERM
56 if [ $RETVAL -eq 0 ]; then
57 rm -f @EXPANDED_LOCALSTATEDIR@/lock/subsys/$servicename
58 rm -f @DBUS_SYSTEM_PID_FILE@
62 # See how we were called.
79 if [ -f @EXPANDED_LOCALSTATEDIR@/lock/subsys/$servicename ]; then
85 echo "Message bus can't reload its configuration, you have to restart it"
89 echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"