CC-5990, CC-5991 - Python cleanup, removed need for /usr/lib/airtime
This commit is contained in:
parent
cd102b984b
commit
875a9dfd8b
115 changed files with 248 additions and 212 deletions
|
@ -124,7 +124,7 @@ function checkRMQConnection() {
|
|||
* @return boolean true if airtime-media-monitor is running
|
||||
*/
|
||||
function checkMediaMonitorService() {
|
||||
exec("pgrep -fx 'python /usr/lib/airtime/media-monitor/media_monitor.py'", $out, $status);
|
||||
exec("pgrep -f -u www-data media_monitor", $out, $status);
|
||||
if (array_key_exists(0, $out) && $status == 0) {
|
||||
return posix_kill(rtrim($out[0]), 0);
|
||||
}
|
||||
|
@ -137,7 +137,7 @@ function checkMediaMonitorService() {
|
|||
* @return boolean true if airtime-playout is running
|
||||
*/
|
||||
function checkPlayoutService() {
|
||||
exec("pgrep -fx 'python /usr/lib/airtime/pypo/bin/pypocli.py'", $out, $status);
|
||||
exec("pgrep -f -u www-data pypo", $out, $status);
|
||||
if (array_key_exists(0, $out) && $status == 0) {
|
||||
return posix_kill(rtrim($out[0]), 0);
|
||||
}
|
||||
|
@ -150,7 +150,7 @@ function checkPlayoutService() {
|
|||
* @return boolean true if airtime-liquidsoap is running
|
||||
*/
|
||||
function checkLiquidsoapService() {
|
||||
exec("pgrep -fx '/usr/bin/airtime-liquidsoap --verbose -f /usr/lib/airtime/pypo/bin/liquidsoap_scripts/ls_script.liq'", $out, $status);
|
||||
exec("pgrep -f -u www-data airtime-liquidsoap", $out, $status);
|
||||
if (array_key_exists(0, $out) && $status == 0) {
|
||||
return posix_kill(rtrim($out[0]), 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue