From 73a98657367d76d419891ee4886cf08f2bfcff28 Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Tue, 5 Feb 2008 09:11:59 +0000 Subject: With the current Racoon we need to inform that we are reloading our SPD entries with a SIGHUP --- etc/inc/vpn.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index 80d084d..c6d44c0 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -575,6 +575,8 @@ EOD; mwexec("/sbin/setkey -F"); /* load SPD */ mwexec("/sbin/setkey -f {$g['varetc_path']}/spd.conf"); + /* We are already online, reload */ + mwexec("/usr/bin/killall -HUP racoon"); } else { /* start racoon */ mwexec("/usr/local/sbin/racoon -f {$g['varetc_path']}/racoon.conf"); @@ -583,6 +585,8 @@ EOD; mwexec("/sbin/setkey -F"); /* load SPD */ mwexec("/sbin/setkey -f {$g['varetc_path']}/spd.conf"); + /* We are already online, reload */ + mwexec("/usr/bin/killall -HUP racoon"); } } } -- cgit v1.1