From 375f7bbef4ec19c191f3181f2340a3ff67ed4cc7 Mon Sep 17 00:00:00 2001 From: sullrich Date: Wed, 2 Dec 2009 23:42:53 -0500 Subject: Make sure process is running before killing --- etc/inc/vpn.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index 1183ad4..91e4951 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -134,7 +134,8 @@ function vpn_ipsec_configure($ipchg = false) { mwexec("/sbin/ifconfig enc0 destroy"); /* kill racoon */ - mwexec("/usr/bin/killall racoon", true); + if(is_process_running("racoon")) + mwexec("/usr/bin/killall racoon", true); killbypid("{$g['varrun_path']}/dnswatch-ipsec.pid"); -- cgit v1.1