#!/bin/bash sudo invoke-rc.d airtime-liquidsoap status echo "restart liquidsoap?" read -e liquid sudo invoke-rc.d airtime-playout status echo "restart playout?" read -e play sudo invoke-rc.d airtime-media-monitor status echo "restart media monitor?" read -e mon sudo invoke-rc.d apache2 status echo "restart apache?" read -e apache sudo invoke-rc.d rabbitmq-server status echo "restart rabbit?" read -e rabbit #===================================================== if [ "$liquid" == y ] ; then sudo invoke-rc.d airtime-liquidsoap restart fi if [ "$play" == y ] ; then sudo invoke-rc.d airtime-playout restart fi if [ "$mon" == y ] ; then sudo invoke-rc.d airtime-media-monitor restart fi if [ "$apache" == y ] ; then sudo invoke-rc.d apache2 restart fi if [ "$rabbit" == y ] ; then sudo invoke-rc.d rabbitmq-server restart fi #===================================================== if [ "$liquid" == stop ] ; then sudo invoke-rc.d airtime-liquidsoap stop fi if [ "$play" == stop ] ; then sudo invoke-rc.d airtime-playout stop fi if [ "$mon" == stop ] ; then sudo invoke-rc.d airtime-media-monitor stop fi if [ "$apache" == stop ] ; then sudo invoke-rc.d apache2 stop fi if [ "$rabbit" == stop ] ; then sudo invoke-rc.d rabbitmq-server stop fi