diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2008-04-01 21:11:05 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2008-04-01 21:11:05 +0000 |
commit | 3a1259aef233b8047215c03cdc62f66d2b1ff9d0 (patch) | |
tree | 8ed373b18254a646b0860687fa4ce23641a640a1 | |
parent | 3a8f631196d6dc94eebfa55460713cea1b26ba04 (diff) | |
download | pfsense-3a1259aef233b8047215c03cdc62f66d2b1ff9d0.zip pfsense-3a1259aef233b8047215c03cdc62f66d2b1ff9d0.tar.gz |
Send extra sighup after starting
-rw-r--r-- | etc/inc/vpn.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index 71d4a16..25522c0 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -615,8 +615,11 @@ EOD; mwexec("/sbin/setkey -F"); /* load SPD */ mwexec("/sbin/setkey -f {$g['varetc_path']}/spd.conf"); + sleep(1); /* We are already online, reload */ mwexec("/usr/bin/killall -HUP racoon"); + sleep(1); + mwexec("/usr/bin/killall -HUP racoon"); } else { /* start racoon */ mwexec("/usr/local/sbin/racoon -f {$g['varetc_path']}/racoon.conf"); @@ -625,8 +628,11 @@ EOD; mwexec("/sbin/setkey -F"); /* load SPD */ mwexec("/sbin/setkey -f {$g['varetc_path']}/spd.conf"); + sleep(1); /* We are already online, reload */ mwexec("/usr/bin/killall -HUP racoon"); + sleep(1); + mwexec("/usr/bin/killall -HUP racoon"); /* start dnswatch, if necessary */ if (count($dnswatch_list) > 0) { |