system: bring stop/start a little closer together #6351

This commit is contained in:
Franco Fichtner 2023-02-28 09:28:52 +01:00
parent 4e1dc4c783
commit 3b61b10bb5

View File

@ -117,9 +117,6 @@ function webgui_configure_do($verbose = false, $interface = '')
/* regenerate the php.ini files in case the setup has changed */
configd_run('template reload OPNsense/WebGui');
/* stop the frontend when the generation was completed */
killbypid('/var/run/lighty-webConfigurator.pid', 'INT', true);
/* flush Phalcon volt templates */
foreach (glob('/usr/local/opnsense/mvc/app/cache/*.php') as $filename) {
unlink($filename);
@ -132,6 +129,9 @@ function webgui_configure_do($verbose = false, $interface = '')
@touch('/var/run/development');
}
/* stop the frontend when the generation was completed */
killbypid('/var/run/lighty-webConfigurator.pid', 'INT', true);
/*
* Force reloading all php-cgi children to
* avoid hiccups with moved include files.