From 3b61b10bb59c2cbcbedcd7e9332d14961d89e5cc Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Tue, 28 Feb 2023 09:28:52 +0100 Subject: [PATCH] system: bring stop/start a little closer together #6351 --- src/etc/inc/plugins.inc.d/webgui.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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.