Skip to content

Commit e3ba298

Browse files
committed
Added service restarts to server plugin
1 parent cbae4b9 commit e3ba298

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/plugins-available/xmpp_plugin.inc.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ function update($event_name, $data) {
113113
$app->system->file_put_contents($this->xmpp_config_dir.'/global.cfg.lua', $tpl->grab());
114114
unset($tpl);
115115

116+
$app->services->restartServiceDelayed('metronome', 'restart');
116117
return;
117118
}
118119

@@ -205,6 +206,8 @@ function domainUpdate($event_name, $data){
205206
$app->system->file_put_contents($this->xmpp_config_dir.'/status/'.$data['new']['domain'].'.cfg.lua', $tpl->grab());
206207
unset($tpl);
207208
}
209+
210+
$app->services->restartServiceDelayed('metronome', 'restart');
208211
}
209212

210213
function domainDelete($event_name, $data){

0 commit comments

Comments
 (0)