Till Brehm
2016-04-21 d5fb304403263b129d709c9fb312363aece229b4
Fixed a problem with metronome restart on update.
2 files modified
8 ■■■■■ changed files
install/apps/metronome-init 4 ●●●● patch | view | raw | blame | history
install/update.php 4 ●●● patch | view | raw | blame | history
install/apps/metronome-init
@@ -35,12 +35,12 @@
reload()
{
    &METRONOME reload >> /dev/null
    $METRONOME reload >> /dev/null
}
restart()
{
    &METRONOME restart >> /dev/null
    $METRONOME restart >> /dev/null
}
case "$1" in
install/update.php
@@ -526,7 +526,9 @@
    }
    if($conf['services']['xmpp']) {
        if($conf['xmpp']['installed'] == true && $conf['xmpp']['init_script'] != '') system($inst->getinitcommand($conf['xmpp']['init_script'], 'restart').' &> /dev/null');
        //if($conf['xmpp']['installed'] == true && $conf['xmpp']['init_script'] != '') system($inst->getinitcommand($conf['xmpp']['init_script'], 'restart').' &> /dev/null');
        // There is no metronome systemd unit at the moment, so we always use the init script.
        if($conf['xmpp']['installed'] == true && $conf['xmpp']['init_script'] != '') system('/etc/init.d/metronome restart &> /dev/null');
    }
    if($conf['services']['proxy']) {