diff options
author | Ermal <eri@pfsense.org> | 2011-01-05 20:41:12 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-01-05 20:41:12 +0000 |
commit | e7af9a80c63c9c8837c53b77b024cc4da75d4b38 (patch) | |
tree | ef37d8f41de095763b052c1412752a26443e0a65 /etc/inc/vpn.inc | |
parent | 2646434bf906d1281cab795d41b2926d579e8427 (diff) | |
download | pfsense-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.
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 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 { |