Debian/Ubuntu require a force-reload option for sysvinit scripts
This commit is contained in:
parent
5a8798ab51
commit
72f79d0f90
|
@ -61,6 +61,13 @@ case "${1:-''}" in
|
||||||
start
|
start
|
||||||
echo "Done."
|
echo "Done."
|
||||||
;;
|
;;
|
||||||
|
'force-reload')
|
||||||
|
# reload commands here
|
||||||
|
echo -n "Reloading $NAME: "
|
||||||
|
stop
|
||||||
|
start
|
||||||
|
echo "Done."
|
||||||
|
;;
|
||||||
'status')
|
'status')
|
||||||
status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
|
status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -61,6 +61,13 @@ case "${1:-''}" in
|
||||||
start
|
start
|
||||||
echo "Done."
|
echo "Done."
|
||||||
;;
|
;;
|
||||||
|
'force-reload')
|
||||||
|
# reload commands here
|
||||||
|
echo -n "Reloading $NAME: "
|
||||||
|
stop
|
||||||
|
start
|
||||||
|
echo "Done."
|
||||||
|
;;
|
||||||
'status')
|
'status')
|
||||||
status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
|
status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -61,6 +61,13 @@ case "${1:-''}" in
|
||||||
start
|
start
|
||||||
echo "Done."
|
echo "Done."
|
||||||
;;
|
;;
|
||||||
|
'force-reload')
|
||||||
|
# reload commands here
|
||||||
|
echo -n "Reloading $NAME: "
|
||||||
|
stop
|
||||||
|
start
|
||||||
|
echo "Done."
|
||||||
|
;;
|
||||||
'status')
|
'status')
|
||||||
status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
|
status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue