# Check if the service is already running?
if [ ! -f /var/lock/subsys/messagebus ]; then
msg_starting messagebus
+ # if capability is modular, load it
+ if modinfo capability >/dev/null 2>&1; then
+ modprobe -s capability
+ fi
dbus-uuidgen --ensure
- daemon dbus-daemon --system
+ daemon --pidfile dbus.pid /usr/bin/dbus-daemon --system
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/messagebus
else
fi
}
+condrestart() {
+ if [ -f /var/lock/subsys/cpqarrayd ]; then
+ stop
+ start
+ else
+ msg_not_running messagebus
+ RETVAL=$1
+ fi
+}
+
+RETVAL=0
# See how we were called.
case "$1" in
start)
stop
start
;;
+ try-restart)
+ condrestart 0
+ ;;
reload|force-reload)
if [ -f /var/lock/subsys/messagebus ]; then
msg_reloading messagebus
RETVAL=$?
;;
*)
- msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
+ msg_usage "$0 {start|stop|restart|try-restart|reload|force-reload|status}"
exit 3
esac
exit $RETVAL
-
-# This must be last line !