Changed files:
upsd.init -> 1.3
# See how we were called.
case "$1" in
start)
# See how we were called.
case "$1" in
start)
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/upsd
else
msg_already_running UPSd
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/upsd
else
msg_already_running UPSd
rm -f /var/lock/subsys/upsd >/dev/null 2>&1
else
msg_not_running UPSd
rm -f /var/lock/subsys/upsd >/dev/null 2>&1
else
msg_not_running UPSd
fi
;;
status)
status upsd
fi
;;
status)
status upsd
$0 stop
$0 start
exit $?
;;
$0 stop
$0 start
exit $?
;;
- force-reload)
- $0 stop && $0 start
- exit $?
- ;;
- msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
- exit 1
- ;;
+ msg_usage "$0 {start|stop|restart|force-reload|status}"
+ exit 3