Skip to content
Snippets Groups Projects
Commit e3ba298b authored by Michael Fürmann's avatar Michael Fürmann
Browse files

Added service restarts to server plugin

parent cbae4b93
No related branches found
No related tags found
No related merge requests found
...@@ -113,6 +113,7 @@ class xmpp_plugin { ...@@ -113,6 +113,7 @@ class xmpp_plugin {
$app->system->file_put_contents($this->xmpp_config_dir.'/global.cfg.lua', $tpl->grab()); $app->system->file_put_contents($this->xmpp_config_dir.'/global.cfg.lua', $tpl->grab());
unset($tpl); unset($tpl);
$app->services->restartServiceDelayed('metronome', 'restart');
return; return;
} }
...@@ -205,6 +206,8 @@ class xmpp_plugin { ...@@ -205,6 +206,8 @@ class xmpp_plugin {
$app->system->file_put_contents($this->xmpp_config_dir.'/status/'.$data['new']['domain'].'.cfg.lua', $tpl->grab()); $app->system->file_put_contents($this->xmpp_config_dir.'/status/'.$data['new']['domain'].'.cfg.lua', $tpl->grab());
unset($tpl); unset($tpl);
} }
$app->services->restartServiceDelayed('metronome', 'restart');
} }
function domainDelete($event_name, $data){ function domainDelete($event_name, $data){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment