Updated configuration checklist

This commit is contained in:
Duncan Sommerville 2014-12-19 11:58:47 -05:00
parent 32f40f3dc8
commit 9c324c1b6f
2 changed files with 20 additions and 2 deletions

View file

@ -209,9 +209,10 @@ $result = $r1 && $r2;
if (!$result) {
?>
<br/>
<strong>Looks like something went wrong!</strong>
<p>
Looks like something went wrong! If you've tried everything we've recommended in the table above and are
still experiencing issues, come <a href="https://forum.sourcefabric.org/">visit our forums</a>
If you've tried everything we've recommended above and are still experiencing issues, come
<a href="https://forum.sourcefabric.org/">visit our forums</a>
or <a href="http://www.sourcefabric.org/en/airtime/manuals/">check out the manual</a>.
</p>
<?php

View file

@ -99,6 +99,8 @@ function configureDatabase() {
/**
* Check that we can connect to RabbitMQ
*
* @return true if the RabbitMQ connection can be established
*/
function checkRMQConnection() {
// Check for airtime.conf in /etc/airtime/ first, then check in the build directory,
@ -116,16 +118,31 @@ function checkRMQConnection() {
return isset($conn);
}
/**
* Check if airtime-media-monitor is currently running
*
* @return boolean true if airtime-media-monitor is running
*/
function checkMediaMonitorService() {
exec("initctl list | grep airtime-media-monitor", $out, $status);
return $status == 0;
}
/**
* Check if airtime-playout is currently running
*
* @return boolean true if airtime-playout is running
*/
function checkPlayoutService() {
exec("initctl list | grep airtime-playout", $out, $status);
return $status == 0;
}
/**
* Check if airtime-liquidsoap is currently running
*
* @return boolean true if airtime-liquidsoap is running
*/
function checkLiquidsoapService() {
exec("initctl list | grep airtime-liquidsoap", $out, $status);
return $status == 0;