Michael Fürmann
2015-02-19 e3ba298b85acfb102b8631360cd523ffa124180f
Added service restarts to server plugin
1 files modified
3 ■■■■■ changed files
server/plugins-available/xmpp_plugin.inc.php 3 ●●●●● patch | view | raw | blame | history
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){