From 15fffebfbf27ec69ef44f555de93c94bea87d3d4 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 31 Jul 2005 21:40:58 +0000 Subject: [PATCH] Kill sasyncd before restarting --- etc/inc/vpn.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index ef14af86a3..b94161c971 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -62,6 +62,8 @@ function vpn_ipsec_failover_configure() { fclose($fd); chmod("{$g['varetc_path']}/sasyncd.conf", 0600); + mwexec("killall sasyncd"); + /* launch sasyncd, oh wise one */ mwexec_bg("/usr/local/sbin/sasyncd -d -v -v -v"); }