summaryrefslogtreecommitdiffstats
path: root/etc/inc/vpn.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r--etc/inc/vpn.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index 91e4951..719edd2 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -71,7 +71,8 @@ function vpn_ipsec_failover_configure() {
fclose($fd);
chmod("{$g['varetc_path']}/sasyncd.conf", 0600);
- mwexec("killall sasyncd", true);
+ if(is_process_running("sasyncd"))
+ mwexec("killall sasyncd", true);
/* launch sasyncd, oh wise one */
/* mwexec_bg("/usr/local/sbin/sasyncd -d -v -v -v"); */
@@ -1145,7 +1146,8 @@ function vpn_ipsec_force_reload() {
$ipseccfg = $config['ipsec'];
/* kill racoon */
- mwexec("/usr/bin/killall racoon", true);
+ if(is_process_running("racoon"))
+ mwexec("/usr/bin/killall racoon", true);
/* wait for process to die */
sleep(4);
OpenPOWER on IntegriCloud