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 # Check if the service is already running?
30 if [ ! -f /var/lock/subsys/messagebus ]; then
31 msg_starting messagebus
32 # if capability is modular, load it
33 if modinfo capability >/dev/null 2>&1; then
34 modprobe -s capability
37 daemon --pidfile dbus.pid /usr/bin/dbus-daemon --system
39 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/messagebus
41 msg_already_running messagebus
46 if [ -f /var/lock/subsys/messagebus ]; then
48 msg_stopping messagebus
49 killproc --pidfile dbus.pid dbus-daemon
50 rm -f /var/lock/subsys/messagebus
51 rm -f /var/run/dbus.pid
53 msg_not_running messagebus
58 if [ -f /var/lock/subsys/cpqarrayd ]; then
62 msg_not_running messagebus
68 # See how we were called.
84 if [ -f /var/lock/subsys/messagebus ]; then
85 msg_reloading messagebus
86 killproc dbus-daemon -HUP
89 msg_not_running messagebus
94 status messagebus dbus-daemon
98 msg_usage "$0 {start|stop|restart|try-restart|reload|force-reload|status}"