CC-2750: Ability to query health status for pypo, liquidsoap, media monitor, and recorder
This commit is contained in:
parent
5418ce4601
commit
1cbc098e91
7 changed files with 45 additions and 10 deletions
|
@ -66,6 +66,11 @@ monit_restart() {
|
|||
|
||||
}
|
||||
|
||||
start_no_monit() {
|
||||
start-stop-daemon --start --background --quiet --chuid $USERID:$GROUPID --make-pidfile --pidfile $PIDFILE0 --startas $DAEMON0
|
||||
liquidsoap_start
|
||||
}
|
||||
|
||||
case "${1:-''}" in
|
||||
'start')
|
||||
# start commands here
|
||||
|
@ -86,6 +91,12 @@ case "${1:-''}" in
|
|||
start
|
||||
echo "Done."
|
||||
;;
|
||||
'start-no-monit')
|
||||
# restart commands here
|
||||
echo -n "Starting $NAME: "
|
||||
start_no_monit
|
||||
echo "Done."
|
||||
;;
|
||||
'monit-restart')
|
||||
# restart commands here
|
||||
echo -n "Monit Restarting $NAME: "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue