summaryrefslogtreecommitdiffstats
path: root/etc/inc/vpn.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-03-07 22:45:22 +0000
committerErmal <eri@pfsense.org>2011-03-07 22:45:22 +0000
commit6b5e978b67ab12c124de352298553e7dcbbb9cfe (patch)
tree79ecbb9fa2c4cf98ad892524a2c6f288726077a3 /etc/inc/vpn.inc
parent06d30ce7db3a859687efdadd0263f0dfab0b32a3 (diff)
downloadpfsense-6b5e978b67ab12c124de352298553e7dcbbb9cfe.zip
pfsense-6b5e978b67ab12c124de352298553e7dcbbb9cfe.tar.gz
Use racoonctl now that ipsec-0.8 is back to reload the config.
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r--etc/inc/vpn.inc4
1 files changed, 1 insertions, 3 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index 0e21224..6f48820 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -886,9 +886,7 @@ EOD;
/* mange racoon process */
if (is_process_running("racoon")) {
sleep("0.1");
- /* XXX: This seems to not work in ipsec-tools 0.7.3 but a HUP signal is equivalent. */
- //mwexec("/usr/local/sbin/racoonctl -s /var/db/racoon/racoon.sock reload-config", false);
- sigkillbypid("{$g['varrun_path']}/racoon.pid", "HUP");
+ mwexec("/usr/local/sbin/racoonctl -s /var/db/racoon/racoon.sock reload-config", false);
/* load SPD without flushing to be safe on config additions or changes. */
mwexec("/usr/local/sbin/setkey -f {$g['varetc_path']}/spd.conf", false);
} else {
OpenPOWER on IntegriCloud