From e3ba298b85acfb102b8631360cd523ffa124180f Mon Sep 17 00:00:00 2001
From: Michael Fürmann <michael@spicyweb.de>
Date: Thu, 19 Feb 2015 15:14:49 -0500
Subject: [PATCH] Added service restarts to server plugin

---
 server/plugins-available/xmpp_plugin.inc.php |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/server/plugins-available/xmpp_plugin.inc.php b/server/plugins-available/xmpp_plugin.inc.php
index 1b177e7..312a2a9 100644
--- a/server/plugins-available/xmpp_plugin.inc.php
+++ b/server/plugins-available/xmpp_plugin.inc.php
@@ -113,6 +113,7 @@
         $app->system->file_put_contents($this->xmpp_config_dir.'/global.cfg.lua', $tpl->grab());
         unset($tpl);
 
+        $app->services->restartServiceDelayed('metronome', 'restart');
         return;
     }
 
@@ -205,6 +206,8 @@
             $app->system->file_put_contents($this->xmpp_config_dir.'/status/'.$data['new']['domain'].'.cfg.lua', $tpl->grab());
             unset($tpl);
         }
+
+        $app->services->restartServiceDelayed('metronome', 'restart');
     }
 
     function domainDelete($event_name, $data){

--
Gitblit v1.9.1