Skip to content

Commit

Permalink
Debian/Ubuntu require a force-reload option for sysvinit scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhjames committed Feb 24, 2015
1 parent 5a8798a commit 72f79d0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ case "${1:-''}" in
start
echo "Done."
;;
'force-reload')
# reload commands here
echo -n "Reloading $NAME: "
stop
start
echo "Done."
;;
'status')
status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
;;
Expand Down
7 changes: 7 additions & 0 deletions python_apps/pypo/install/sysvinit/airtime-liquidsoap
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ case "${1:-''}" in
start
echo "Done."
;;
'force-reload')
# reload commands here
echo -n "Reloading $NAME: "
stop
start
echo "Done."
;;
'status')
status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
;;
Expand Down
7 changes: 7 additions & 0 deletions python_apps/pypo/install/sysvinit/airtime-playout
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ case "${1:-''}" in
start
echo "Done."
;;
'force-reload')
# reload commands here
echo -n "Reloading $NAME: "
stop
start
echo "Done."
;;
'status')
status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
;;
Expand Down

0 comments on commit 72f79d0

Please sign in to comment.