From e7af9a80c63c9c8837c53b77b024cc4da75d4b38 Mon Sep 17 00:00:00 2001 From: Ermal Date: Wed, 5 Jan 2011 20:41:12 +0000 Subject: 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. --- etc/inc/vpn.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 { -- cgit v1.1