Commit d5fb3044 authored by Till Brehm's avatar Till Brehm

Fixed a problem with metronome restart on update.

parent 480fefca
...@@ -35,12 +35,12 @@ stop() ...@@ -35,12 +35,12 @@ stop()
reload() reload()
{ {
&METRONOME reload >> /dev/null $METRONOME reload >> /dev/null
} }
restart() restart()
{ {
&METRONOME restart >> /dev/null $METRONOME restart >> /dev/null
} }
case "$1" in case "$1" in
......
...@@ -526,7 +526,9 @@ if($reconfigure_services_answer == 'yes') { ...@@ -526,7 +526,9 @@ if($reconfigure_services_answer == 'yes') {
} }
if($conf['services']['xmpp']) { 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']) { if($conf['services']['proxy']) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment