mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Unlink pid file before starting a new process
This commit is contained in:
parent
6989320509
commit
a11bc49704
@ -735,11 +735,6 @@ function system_webgui_start() {
|
||||
if ($g['booting'])
|
||||
echo gettext("Starting webConfigurator...");
|
||||
|
||||
/* kill any running lighttpd */
|
||||
killbypid("{$g['varrun_path']}/lighty-webConfigurator.pid");
|
||||
|
||||
sleep(1);
|
||||
|
||||
chdir($g['www_path']);
|
||||
|
||||
/* defaults */
|
||||
@ -793,6 +788,13 @@ function system_webgui_start() {
|
||||
$crt, $key, $ca, "lighty-webConfigurator.pid", $portarg, "/usr/local/www/",
|
||||
"cert.pem", "ca.pem");
|
||||
|
||||
/* kill any running lighttpd */
|
||||
killbypid("{$g['varrun_path']}/lighty-webConfigurator.pid");
|
||||
|
||||
sleep(1);
|
||||
|
||||
@unlink("{$g['varrun_path']}/lighty-webConfigurator.pid");
|
||||
|
||||
/* attempt to start lighthttpd */
|
||||
$res = mwexec("/usr/local/sbin/lighttpd -f {$g['varetc_path']}/lighty-webConfigurator.conf");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user