diff options
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r-- | etc/inc/vpn.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index c890382..75fa74c 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -980,9 +980,11 @@ EOD; if (isvalidpid("{$g['varrun_path']}/filterdns-ipsec.pid")) sigkillbypid("{$g['varrun_path']}/filterdns-ipsec.pid", "HUP"); else { - killbypid("{$g['varrun_path']}/filterdns-ipsec.pid"); mwexec("/usr/local/sbin/filterdns -p {$g['varrun_path']}/filterdns-ipsec.pid -i {$interval} -c {$g['varetc_path']}/ipsec/filterdns-ipsec.hosts -d 1"); } + } else { + killbypid("{$g['varrun_path']}/filterdns-ipsec.pid"); + @unlink("{$g['varrun_path']}/filterdns-ipsec.pid"); } vpn_ipsec_failover_configure(); |