summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-06-06 18:12:52 +0000
committerErmal <eri@pfsense.org>2011-06-06 18:12:52 +0000
commit4e19284675cafa8c81ed86e86e9554e4b80d6ecb (patch)
tree12e4ec7e33679e9cda9af207e048f13b660002a4 /etc/inc
parentf6bf0661e176db8199a75ac4d842a090b3f95569 (diff)
downloadpfsense-4e19284675cafa8c81ed86e86e9554e4b80d6ecb.zip
pfsense-4e19284675cafa8c81ed86e86e9554e4b80d6ecb.tar.gz
Correct event calling during bootup for rc.newipsecdns and also convert the command executed during an ipsec even to go through check_reload_status which will prevent races on calling rc.newipsecdns. Which might lead to many filterdns processes.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/vpn.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index 5e014fd..7c08ccb 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -912,7 +912,7 @@ EOD;
$hostnames = "";
array_unique($filterdns_list);
foreach ($filterdns_list as $hostname)
- $hostnames .= "cmd {$hostname} '/etc/rc.newipsecdns'\n";
+ $hostnames .= "cmd {$hostname} '/usr/local/sbin/pfSctl -c \"service reload ipsecdns\"'\n";
file_put_contents("{$g['varetc_path']}/filterdns-ipsec.hosts", $hostnames);
killbypid("{$g['varrun_path']}/filterdns-ipsec.pid");
OpenPOWER on IntegriCloud