diff options
author | Ermal <eri@pfsense.org> | 2011-01-05 20:43:45 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-01-05 20:43:45 +0000 |
commit | 6ae19856e03a55a90192b1ba3d7acae98ff478bb (patch) | |
tree | 2cef4f8a6e02121c13f9b4e60e1044c8ad12dc27 | |
parent | e7af9a80c63c9c8837c53b77b024cc4da75d4b38 (diff) | |
download | pfsense-6ae19856e03a55a90192b1ba3d7acae98ff478bb.zip pfsense-6ae19856e03a55a90192b1ba3d7acae98ff478bb.tar.gz |
Actually use sigkillbypid.
-rw-r--r-- | etc/inc/vpn.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index 88fee3d..e4b49ec 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -882,7 +882,7 @@ EOD; sleep("0.1"); /* 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"); + sigkillbypid("{$g['varrun_path']}/racoon.pid", "HUP"); /* 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 { |