3 # messagebus The D-BUS systemwide message bus
7 # description: This is a daemon which broadcasts notifications of system
8 # events and other messages.
10 # pidfile: /var/run/dbus.pid
12 # Source function library
13 . /etc/rc.d/init.d/functions
16 . /etc/sysconfig/network
18 # Check that networking is up.
19 if is_yes "${NETWORKING}"; then
20 if [ ! -f /var/lock/subsys/network ]; then
21 msg_network_down messagebus
29 # See how we were called.
32 # Check if the service is already running?
33 if [ ! -f /var/lock/subsys/messagebus ]; then
34 msg_starting messagebus
35 daemon dbus-daemon --system
37 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/messagebus
39 msg_already_running messagebus
43 if [ -f /var/lock/subsys/messagebus ]; then
45 msg_stopping messagebus
46 killproc --pidfile dbus.pid dbus-daemon
47 rm -f /var/lock/subsys/messagebus
48 rm -f /var/run/dbus.pid
50 msg_not_running messagebus
59 if [ -f /var/lock/subsys/messagebus ]; then
60 msg_reloading messagebus
61 killproc dbus-daemon -HUP
64 msg_not_running messagebus >&2
69 # if program allows reloading without stopping
78 status messagebus dbus-daemon
82 msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
88 # This must be last line !
89 # vi:syntax=sh:tw=78:ts=8:sw=4