mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Check to see if the pid file exists before trying to kill anyprocess
This commit is contained in:
parent
9fd145911d
commit
d224df189c
@ -1278,7 +1278,8 @@ function services_dnsmasq_configure() {
|
||||
}
|
||||
|
||||
/* kill any running dnsmasq */
|
||||
sigkillbypid("{$g['varrun_path']}/dnsmasq.pid", "TERM");
|
||||
if (file_exists("{$g['varrun_path']}/dnsmasq.pid"))
|
||||
sigkillbypid("{$g['varrun_path']}/dnsmasq.pid", "TERM");
|
||||
|
||||
if (isset($config['dnsmasq']['enable'])) {
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user