SysV init scripts cleanup #2
This commit is contained in:
parent
70dfbe2845
commit
940ac992ff
@ -70,8 +70,6 @@ case "$1" in
|
|||||||
stop
|
stop
|
||||||
start
|
start
|
||||||
;;
|
;;
|
||||||
reload)
|
|
||||||
;;
|
|
||||||
condrestart|try-restart)
|
condrestart|try-restart)
|
||||||
if [ -f /var/lock/subsys/$prog ]; then
|
if [ -f /var/lock/subsys/$prog ]; then
|
||||||
stop
|
stop
|
||||||
@ -79,7 +77,7 @@ case "$1" in
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: $prog {start|stop|restart|condrestart|try-restart|reload|force-reload|status|usage}"
|
echo "Usage: $prog {start|stop|status|restart|force-reload|condrestart|try-restart}"
|
||||||
[ "$1" = "usage" ] && exit 0
|
[ "$1" = "usage" ] && exit 0
|
||||||
exit 2
|
exit 2
|
||||||
;;
|
;;
|
||||||
|
@ -70,8 +70,6 @@ case "$1" in
|
|||||||
stop
|
stop
|
||||||
start
|
start
|
||||||
;;
|
;;
|
||||||
reload)
|
|
||||||
;;
|
|
||||||
condrestart|try-restart)
|
condrestart|try-restart)
|
||||||
if [ -f /var/lock/subsys/$prog ]; then
|
if [ -f /var/lock/subsys/$prog ]; then
|
||||||
stop
|
stop
|
||||||
@ -79,7 +77,7 @@ case "$1" in
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: $prog {start|stop|restart|condrestart|try-restart|reload|force-reload|status|usage}"
|
echo "Usage: $prog {start|stop|status|restart|force-reload|condrestart|try-restart}"
|
||||||
[ "$1" = "usage" ] && exit 0
|
[ "$1" = "usage" ] && exit 0
|
||||||
exit 2
|
exit 2
|
||||||
;;
|
;;
|
||||||
|
@ -69,8 +69,6 @@ case "$1" in
|
|||||||
stop
|
stop
|
||||||
start
|
start
|
||||||
;;
|
;;
|
||||||
reload)
|
|
||||||
;;
|
|
||||||
condrestart|try-restart)
|
condrestart|try-restart)
|
||||||
if [ -f /var/lock/subsys/$prog ]; then
|
if [ -f /var/lock/subsys/$prog ]; then
|
||||||
stop
|
stop
|
||||||
@ -78,7 +76,7 @@ case "$1" in
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: $prog {start|stop|restart|condrestart|try-restart|reload|force-reload|status|usage}"
|
echo "Usage: $prog {start|stop|status|restart|force-reload|condrestart|try-restart}"
|
||||||
[ "$1" = "usage" ] && exit 0
|
[ "$1" = "usage" ] && exit 0
|
||||||
exit 2
|
exit 2
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user