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@
14 #[ -x @EXPANDED_BINDIR@/dbus-daemon ] || exit 0
16 # Source function library.
17 #. @EXPANDED_SYSCONFDIR@/rc.d/init.d/functions
19 # so we can rearrange this easily
20 #processname=dbus-daemon
21 #servicename=messagebus
26 echo "Starting system message bus"
27 if [ -x @EXPANDED_BINDIR@/dbus-uuidgen ] ; then
28 @EXPANDED_BINDIR@/dbus-uuidgen --ensure
31 if [ -x @EXPANDED_BINDIR@/dbus-daemon ];then
32 @EXPANDED_BINDIR@/dbus-daemon --system
34 #daemon --check $servicename $processname --system
37 #[ $RETVAL -eq 0 ] && touch @EXPANDED_LOCALSTATEDIR@/lock/subsys/$servicename
41 echo "Stopping system message bus"
43 ## we don't want to kill all the per-user $processname, we want
44 ## to use the pid file *only*; because we use the fake nonexistent
45 ## program name "$servicename" that should be safe-ish
49 #if [ $RETVAL -eq 0 ]; then
50 # rm -f @EXPANDED_LOCALSTATEDIR@/lock/subsys/$servicename
51 # rm -f @DBUS_SYSTEM_PID_FILE@
55 # See how we were called.
72 echo "Message bus can't reload its configuration, you have to restart it"
76 echo $"Usage: $0 {start|stop|status|restart|reload}"