Fixed service execution calls
This commit is contained in:
parent
5cd15c1887
commit
fc68dfa256
|
@ -50,9 +50,9 @@ class FinishSetup extends Setup {
|
||||||
}
|
}
|
||||||
|
|
||||||
function startServices() {
|
function startServices() {
|
||||||
exec("service airtime-media-monitor start-with-monit");
|
exec("service airtime-media-monitor start");
|
||||||
exec("service airtime-playout start-with-monit");
|
exec("service airtime-playout start");
|
||||||
exec("service airtime-liquidsoap start-with-monit");
|
exec("service airtime-liquidsoap start");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -371,10 +371,6 @@ fi
|
||||||
verbose "...Done"
|
verbose "...Done"
|
||||||
|
|
||||||
verbose "\n * Creating sudoers file..."
|
verbose "\n * Creating sudoers file..."
|
||||||
echo "${web_user} ALL = (root) NOPASSWD: \
|
|
||||||
/sbin/start airtime-media-monitor, /sbin/stop airtime-media-monitor, \
|
|
||||||
/sbin/start airtime-playout, /sbin/stop airtime-playout, \
|
|
||||||
/sbin/start airtime-liquidsoap, /sbin/stop airtime-liquidsoap" > /etc/sudoers.d/service_${web_user}
|
|
||||||
ln -sf /usr/bin/liquidsoap /usr/bin/airtime-liquidsoap
|
ln -sf /usr/bin/liquidsoap /usr/bin/airtime-liquidsoap
|
||||||
verbose "...Done"
|
verbose "...Done"
|
||||||
|
|
||||||
|
|
|
@ -12,4 +12,4 @@ setgid www-data
|
||||||
env LANG='en_US.UTF-8'
|
env LANG='en_US.UTF-8'
|
||||||
env LC_ALL='en_US.UTF-8'
|
env LC_ALL='en_US.UTF-8'
|
||||||
|
|
||||||
exec "airtime-media-monitor"
|
exec airtime-media-monitor
|
|
@ -12,4 +12,4 @@ setgid www-data
|
||||||
env LANG='en_US.UTF-8'
|
env LANG='en_US.UTF-8'
|
||||||
env LC_ALL='en_US.UTF-8'
|
env LC_ALL='en_US.UTF-8'
|
||||||
|
|
||||||
exec "airtime-liquidsoap"
|
exec airtime-liquidsoap
|
||||||
|
|
|
@ -12,4 +12,4 @@ setgid www-data
|
||||||
env LANG='en_US.UTF-8'
|
env LANG='en_US.UTF-8'
|
||||||
env LC_ALL='en_US.UTF-8'
|
env LC_ALL='en_US.UTF-8'
|
||||||
|
|
||||||
exec "airtime-playout"
|
exec airtime-playout
|
Loading…
Reference in New Issue