summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-01-05 20:41:12 +0000
committerErmal <eri@pfsense.org>2011-01-05 20:41:12 +0000
commite7af9a80c63c9c8837c53b77b024cc4da75d4b38 (patch)
treeef37d8f41de095763b052c1412752a26443e0a65
parent2646434bf906d1281cab795d41b2926d579e8427 (diff)
downloadpfsense-e7af9a80c63c9c8837c53b77b024cc4da75d4b38.zip
pfsense-e7af9a80c63c9c8837c53b77b024cc4da75d4b38.tar.gz
Send a HUP to racoon which is equivalent to the reload-config racoonctl command which seems to not work in 0.7.3 of ipsec-tools.
-rw-r--r--etc/inc/vpn.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index 3022e60..88fee3d 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -880,7 +880,9 @@ EOD;
/* mange racoon process */
if (is_process_running("racoon")) {
sleep("0.1");
- mwexec("/usr/local/sbin/racoonctl -s /var/db/racoon/racoon.sock reload-config", false);
+ /* 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);
+ mwexec("/bin/pkill -HUP -x racoon");
/* 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