Rename all systemd, sysvinit and upstart files to libretime

Fixes: #516
This commit is contained in:
Kyle Robbertze 2020-05-05 13:04:32 +02:00
parent e56d468036
commit c44346fe94
18 changed files with 123 additions and 93 deletions

View file

@ -165,19 +165,19 @@ $result = $r1 && $r2;
</tr>
<tr class="<?=$analyzer ? 'success' : 'danger';?>">
<td class="component">
Airtime Analyzer
Media Analyzer
</td>
<td class="description">
Airtime Upload and File Analysis service
<?php echo _("LibreTime media analyzer service") ?>
</td>
<td class="solution <?php if ($analyzer) {echo 'check';?>">
<?php
} else {
?>">
Check that the airtime_analyzer service is installed correctly in <code>/etc/init.d</code>,
and ensure that it's running with
<br/><code>initctl list | grep airtime_analyzer</code><br/>
If not, try running <code>sudo service airtime_analyzer start</code>
<?php echo _("Check that the libretime-analyzer service is installed correctly in ") ?><code>/etc/systemd/system/</code>,
<?php echo _(" and ensure that it's running with ") ?>
<br/><code>systemctl status libretime-analyzer</code><br/>
<?php echo _("If not, try ") ?><br/><code>sudo systemctl restart libretime-analyzer</code>
<?php
}
?>
@ -188,16 +188,16 @@ $result = $r1 && $r2;
Pypo
</td>
<td class="description">
Airtime playout service
<?php echo _("LibreTime playout service") ?>
</td>
<td class="solution <?php if ($pypo) {echo 'check';?>">
<?php
} else {
?>">
Check that the airtime-playout service is installed correctly in <code>/etc/init.d</code>,
and ensure that it's running with
<br/><code>initctl list | grep airtime-playout</code><br/>
If not, try running <code>sudo service airtime-playout restart</code>
<?php echo _("Check that the libretime-playout service is installed correctly in ") ?><code>/etc/systemd/system/</code>,
<?php echo _(" and ensure that it's running with ") ?>
<br/><code>systemctl status libretime-playout</code><br/>
<?php echo _("If not, try ") ?><br/><code>sudo systemctl restart libretime-playout</code>
<?php
}
?>
@ -208,16 +208,16 @@ $result = $r1 && $r2;
Liquidsoap
</td>
<td class="description">
Airtime liquidsoap service
<?php echo _("LibreTime liquidsoap service") ?>
</td>
<td class="solution <?php if ($liquidsoap) {echo 'check';?>">
<td class="solution <?php if ($liquidsoap) {echo 'check';?>" >
<?php
} else {
?>">
Check that the airtime-liquidsoap service is installed correctly in <code>/etc/init.d</code>,
and ensure that it's running with
<br/><code>initctl list | grep airtime-liquidsoap</code><br/>
If not, try running <code>sudo service airtime-liquidsoap restart</code>
<?php echo _("Check that the libretime-liquidsoap service is installed correctly in ") ?><code>/etc/systemd/system/</code>,
<?php echo _(" and ensure that it's running with ") ?>
<br/><code>systemctl status libretime-liquidsoap</code><br/>
<?php echo _("If not, try ") ?><br/><code>sudo systemctl restart libretime-liquidsoap</code>
<?php
}
?>
@ -228,16 +228,16 @@ $result = $r1 && $r2;
Celery
</td>
<td class="description">
Airtime Celery Task service
<?php echo _("LibreTime Celery Task service") ?>
</td>
<td class="solution <?php if ($celery) {echo 'check';?>">
<td class="solution <?php if ($celery) {echo 'check';?>" >
<?php
} else {
?>">
Check that the airtime-celery service is installed correctly in <code>/etc/init.d</code>,
and ensure that it's running with
<br/><code>initctl list | grep airtime-celery</code><br/>
If not, try running <code>sudo service airtime-celery restart</code>
<?php echo _("Check that the libretime-celery service is installed correctly in ") ?><code>/etc/systemd/system/</code>,
<?php echo _(" and ensure that it's running with ") ?>
<br/><code>systemctl status libretime-celery</code><br/>
<?php echo _("If not, try ") ?><br/><code>sudo systemctl restart libretime-celery</code>
<?php
}
?>

View file

@ -44,7 +44,7 @@
<?php
} else {
?>">
Try running <code>sudo apt-get install php5-pgsql</code>
Try running <code>sudo apt-get install php7-pgsql</code>
<?php
}
?>
@ -101,10 +101,10 @@
<?php
} else {
?>">
<?php echo _("Check that the airtime_analyzer service is installed correctly in ") ?><code>/etc/init</code>,
<?php echo _("Check that the libretime-analyzer service is installed correctly in ") ?><code>/etc/systemd/system/</code>,
<?php echo _(" and ensure that it's running with ") ?>
<br/><code>initctl list | grep airtime_analyzer</code><br/>
<?php echo _("If not, try ") ?><br/><code>sudo service airtime_analyzer start</code>
<br/><code>systemctl status libretime-analyzer</code><br/>
<?php echo _("If not, try ") ?><br/><code>sudo systemctl restart libretime-analyzer</code>
<?php
}
?>
@ -121,10 +121,10 @@
<?php
} else {
?>">
<?php echo _("Check that the airtime-playout service is installed correctly in ") ?><code>/etc/init</code>,
<?php echo _("Check that the libretime-playout service is installed correctly in ") ?><code>/etc/systemd/system/</code>,
<?php echo _(" and ensure that it's running with ") ?>
<br/><code>initctl list | grep airtime-playout</code><br/>
<?php echo _("If not, try ") ?><br/><code>sudo service airtime-playout restart</code>
<br/><code>systemctl status libretime-playout</code><br/>
<?php echo _("If not, try ") ?><br/><code>sudo systemctl restart libretime-playout</code>
<?php
}
?>
@ -141,17 +141,17 @@
<?php
} else {
?>">
<?php echo _("Check that the airtime-liquidsoap service is installed correctly in ") ?><code>/etc/init</code>,
<?php echo _("Check that the libretime-liquidsoap service is installed correctly in ") ?><code>/etc/systemd/system/</code>,
<?php echo _(" and ensure that it's running with ") ?>
<br/><code>initctl list | grep airtime-liquidsoap</code><br/>
<?php echo _("If not, try ") ?><br/><code>sudo service airtime-liquidsoap restart</code>
<br/><code>systemctl status libretime-liquidsoap</code><br/>
<?php echo _("If not, try ") ?><br/><code>sudo systemctl restart libretime-liquidsoap</code>
<?php
}
?>
</td>
</tr>
<tr>
<td class="component" align="center">
<td class="component">
Celery
</td>
<td class="description">
@ -161,10 +161,10 @@
<?php
} else {
?>">
<?php echo _("Check that the airtime-celery service is installed correctly in ") ?><code>/etc/init</code>,
<?php echo _("Check that the libretime-celery service is installed correctly in ") ?><code>/etc/systemd/system/</code>,
<?php echo _(" and ensure that it's running with ") ?>
<br/><code>initctl list | grep airtime-celery</code><br/>
<?php echo _("If not, try ") ?><br/><code>sudo service airtime-celery restart</code>
<br/><code>systemctl status libretime-celery</code><br/>
<?php echo _("If not, try ") ?><br/><code>sudo systemctl restart libretime-celery</code>
<?php
}
?>

View file

@ -2,18 +2,18 @@
?>
<form action="#" role="form" id="finishSettingsForm">
<h3 class="form-title">Manual Step: Start Airtime Services</h3>
<h3 class="form-title">Manual Step: Start Libretime Services</h3>
<span id="helpBlock" class="help-block help-message"></span>
<p>
Looks like you're almost done! As a final step, please run the following commands from the terminal:
</p>
<pre style="text-align: left">sudo service airtime-playout start
sudo service airtime-liquidsoap start
sudo service airtime_analyzer start
sudo service airtime-celery start</pre>
<pre style="text-align: left">sudo systemctl start libretime-playout
sudo systemctl start libretime-liquidsoap
sudo systemctl start libretime-analyzer
sudo systemctl start libretime-celery</pre>
<p>
Click "Done!" to bring up the Airtime configuration checklist; if your configuration is all green,
you're ready to get started with your personal Airtime station!
Click "Done!" to bring up the Libretime configuration checklist; if your configuration is all green,
you're ready to get started with your personal Libretime station!
</p>
<p>
If you need to re-run the web installer, just remove <code>/etc/airtime/airtime.conf</code>.
@ -28,4 +28,4 @@ sudo service airtime-celery start</pre>
e.preventDefault();
window.location.assign("/?config");
});
</script>
</script>

View file

@ -45,7 +45,7 @@ function checkDatabaseDependencies() {
/**
* Check that all external services are configured correctly and return an associative
* array with the results
*
*
* @return array associative array of external service check results
*/
function checkExternalServices() {
@ -88,7 +88,7 @@ function configureDatabase() {
/**
* Check that we can connect to RabbitMQ
*
*
* @return true if the RabbitMQ connection can be established
*/
function checkRMQConnection() {
@ -109,7 +109,7 @@ function checkRMQConnection() {
/**
* Check if airtime-analyzer is currently running
*
*
* @return boolean true if airtime-analyzer is running
*/
function checkAnalyzerService() {
@ -122,7 +122,7 @@ function checkAnalyzerService() {
/**
* Check if airtime-playout is currently running
*
*
* @return boolean true if airtime-playout is running
*/
function checkPlayoutService() {
@ -135,7 +135,7 @@ function checkPlayoutService() {
/**
* Check if airtime-liquidsoap is currently running
*
*
* @return boolean true if airtime-liquidsoap is running
*/
function checkLiquidsoapService() {
@ -148,7 +148,7 @@ function checkLiquidsoapService() {
/**
* Check if airtime-celery is currently running
*
*
* @return boolean true if airtime-celery is running
*/
function checkCeleryService() {

View file

@ -5211,24 +5211,24 @@ msgid "LibreTime Celery Task service"
msgstr "Служба Celery Task LibreTime"
#: airtime_mvc\application\views\scripts\systemstatus\index.phtml:104
msgid "Check that the airtime_analyzer service is installed correctly in "
msgstr "Проверьте, что служба airtime_analyzer правильно установлена в "
msgid "Check that the libretime-analyzer service is installed correctly in "
msgstr "Проверьте, что служба libretime-analyzer правильно установлена в "
#: airtime_mvc\application\views\scripts\systemstatus\index.phtml:124
msgid "Check that the airtime-playout service is installed correctly in "
msgstr "Проверьте, что служба airtime-playout правильно установлена в "
msgid "Check that the libretime-playout service is installed correctly in "
msgstr "Проверьте, что служба libretime-playout правильно установлена в "
#: airtime_mvc\application\views\scripts\systemstatus\index.phtml:144
msgid "Check that the airtime-liquidsoap service is installed correctly in "
msgstr "Проверьте, что служба airtime-liquidsoap правильно установлена в "
msgid "Check that the libretime-liquidsoap service is installed correctly in "
msgstr "Проверьте, что служба libretime-liquidsoap правильно установлена в "
#: airtime_mvc\application\views\scripts\systemstatus\index.phtml:164
msgid "Check that the airtime-celery service is installed correctly in "
msgstr "Проверьте, что служба airtime-celery правильно установлена в "
msgid "Check that the libretime-celery service is installed correctly in "
msgstr "Проверьте, что служба libretime-celery правильно установлена в "
#: airtime_mvc\application\views\scripts\systemstatus\index.phtml:158
msgid " If not, try <br/><code>sudo service airtime-celery restart</code>"
msgstr " Если нет - попробуйте запустить <br/><code>sudo service airtime-celery restart</code>"
msgid " If not, try <br/><code>sudo service libretime-celery restart</code>"
msgstr " Если нет - попробуйте запустить <br/><code>sudo service libretime-celery restart</code>"
#: airtime_mvc\application\views\scripts\systemstatus\index.phtml:164
msgid " and ensure that it's running with "