- initialize RETVAL
Changed files:
messagebus.init -> 1.10
fi
}
+condrestart() {
+ if [ -f /var/lock/subsys/cpqarrayd ]; then
+ stop
+ start
+ else
+ msg_not_running cpqarrayd
+ 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