From 6b5e978b67ab12c124de352298553e7dcbbb9cfe Mon Sep 17 00:00:00 2001 From: Ermal Date: Mon, 7 Mar 2011 22:45:22 +0000 Subject: Use racoonctl now that ipsec-0.8 is back to reload the config. --- etc/inc/vpn.inc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'etc') diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index 0e21224..6f48820 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -886,9 +886,7 @@ EOD; /* mange racoon process */ if (is_process_running("racoon")) { 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); - sigkillbypid("{$g['varrun_path']}/racoon.pid", "HUP"); + mwexec("/usr/local/sbin/racoonctl -s /var/db/racoon/racoon.sock reload-config", false); /* 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