From e3ba298b85acfb102b8631360cd523ffa124180f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20F=C3=BCrmann?= <michael@spicyweb.de> Date: Thu, 19 Feb 2015 21:14:49 +0100 Subject: [PATCH] Added service restarts to server plugin --- server/plugins-available/xmpp_plugin.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/plugins-available/xmpp_plugin.inc.php b/server/plugins-available/xmpp_plugin.inc.php index 1b177e7f0f..312a2a9945 100644 --- a/server/plugins-available/xmpp_plugin.inc.php +++ b/server/plugins-available/xmpp_plugin.inc.php @@ -113,6 +113,7 @@ class xmpp_plugin { $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 @@ class xmpp_plugin { $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){ -- GitLab