Skip to content

Commit

Permalink
Fix to overly optimistic service reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
dpsommer committed Jan 19, 2015
1 parent 9059811 commit a0193f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions airtime_mvc/build/airtime-setup/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function checkRMQConnection() {
* @return boolean true if airtime-media-monitor is running
*/
function checkMediaMonitorService() {
exec("pgrep -f media-monitor", $out, $status);
exec("pgrep -fx 'python /usr/lib/airtime/media-monitor/media_monitor.py'", $out, $status);
return $status == 0;
}

Expand All @@ -134,7 +134,7 @@ function checkMediaMonitorService() {
* @return boolean true if airtime-playout is running
*/
function checkPlayoutService() {
exec("pgrep -f pypocli", $out, $status);
exec("pgrep -fx 'python /usr/lib/airtime/pypo/bin/pypocli.py'", $out, $status);
return $status == 0;
}

Expand All @@ -144,6 +144,6 @@ function checkPlayoutService() {
* @return boolean true if airtime-liquidsoap is running
*/
function checkLiquidsoapService() {
exec("pgrep -f liquidsoap", $out, $status);
exec("pgrep -fx '/usr/bin/airtime-liquidsoap --verbose -f /usr/lib/airtime/pypo/bin/liquidsoap_scripts/ls_script.liq'", $out, $status);
return $status == 0;
}

0 comments on commit a0193f6

Please sign in to comment.