CC-4114: separate Liquidsoap into its own init.d script
if liquidsoap restarts, automatically notify pypo
This commit is contained in:
parent
8cf048d459
commit
8d81ecf3ad
6 changed files with 59 additions and 2 deletions
|
@ -55,6 +55,18 @@ case "${1:-''}" in
|
|||
start
|
||||
echo "Done."
|
||||
;;
|
||||
|
||||
'status')
|
||||
if [ -f "/var/run/airtime-liquidsoap.pid" ]; then
|
||||
pid=`cat /var/run/airtime-liquidsoap.pid`
|
||||
if [ -d "/proc/$pid" ]; then
|
||||
echo "Liquidsoap is running"
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
echo "Liquidsoap is not running"
|
||||
exit 1
|
||||
;;
|
||||
'start-no-monit')
|
||||
# restart commands here
|
||||
echo -n "Starting $NAME: "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue