summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/vpn.inc3
1 files changed, 2 insertions, 1 deletions
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");
OpenPOWER on IntegriCloud