Skip to content

Commit d5fb304

Browse files
author
Till Brehm
committed
Fixed a problem with metronome restart on update.
1 parent 480fefc commit d5fb304

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

install/apps/metronome-init

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ stop()
3535

3636
reload()
3737
{
38-
&METRONOME reload >> /dev/null
38+
$METRONOME reload >> /dev/null
3939
}
4040

4141
restart()
4242
{
43-
&METRONOME restart >> /dev/null
43+
$METRONOME restart >> /dev/null
4444
}
4545

4646
case "$1" in

install/update.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,9 @@
526526
}
527527

528528
if($conf['services']['xmpp']) {
529-
if($conf['xmpp']['installed'] == true && $conf['xmpp']['init_script'] != '') system($inst->getinitcommand($conf['xmpp']['init_script'], 'restart').' &> /dev/null');
529+
//if($conf['xmpp']['installed'] == true && $conf['xmpp']['init_script'] != '') system($inst->getinitcommand($conf['xmpp']['init_script'], 'restart').' &> /dev/null');
530+
// There is no metronome systemd unit at the moment, so we always use the init script.
531+
if($conf['xmpp']['installed'] == true && $conf['xmpp']['init_script'] != '') system('/etc/init.d/metronome restart &> /dev/null');
530532
}
531533

532534
if($conf['services']['proxy']) {

0 commit comments

Comments
 (0)