summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/gwlb.inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/etc/inc/gwlb.inc')
-rw-r--r--src/etc/inc/gwlb.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/etc/inc/gwlb.inc b/src/etc/inc/gwlb.inc
index c36a026..10b48f4 100644
--- a/src/etc/inc/gwlb.inc
+++ b/src/etc/inc/gwlb.inc
@@ -153,6 +153,9 @@ function start_dpinger($gateway) {
: $dpinger_defaults['losshigh']
) . " ";
+ /* Make sure we don't end up with 2 process for the same GW */
+ stop_dpinger($gateway['name']);
+
/* Redirect stdout to /dev/null to avoid exec() to wait for dpinger */
return mwexec("/usr/local/bin/dpinger {$params} {$gateway['monitor']} >/dev/null");
}
OpenPOWER on IntegriCloud