diff --git a/src/etc/inc/plugins.inc.d/webgui.inc b/src/etc/inc/plugins.inc.d/webgui.inc index dca5a13df..9ce08fd15 100644 --- a/src/etc/inc/plugins.inc.d/webgui.inc +++ b/src/etc/inc/plugins.inc.d/webgui.inc @@ -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.