From d5fb304403263b129d709c9fb312363aece229b4 Mon Sep 17 00:00:00 2001
From: Till Brehm <tbrehm@ispconfig.org>
Date: Thu, 21 Apr 2016 14:09:20 -0400
Subject: [PATCH] Fixed a problem with metronome restart on update.

---
 install/update.php |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/install/update.php b/install/update.php
index 8f818df..29ffcb4 100644
--- a/install/update.php
+++ b/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']) {

--
Gitblit v1.9.1