summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorsullrich <sullrich@pfsense.org>2009-12-02 23:42:53 -0500
committersullrich <sullrich@pfsense.org>2009-12-02 23:42:53 -0500
commit375f7bbef4ec19c191f3181f2340a3ff67ed4cc7 (patch)
tree6a193cd3e773c3b4061942127a34b792994f6469 /etc/inc
parent48285469a111b4abadbbee022d24c84cef21c04b (diff)
downloadpfsense-375f7bbef4ec19c191f3181f2340a3ff67ed4cc7.zip
pfsense-375f7bbef4ec19c191f3181f2340a3ff67ed4cc7.tar.gz
Make sure process is running before killing
Diffstat (limited to 'etc/inc')
-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