summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-07-05 10:53:13 +0000
committerErmal <eri@pfsense.org>2013-07-05 10:53:13 +0000
commitf4a8e38c6ed250e9a18c4e472481541198231cdb (patch)
treeda0d0f2b85b137170524ef3c88d472cad2574356
parent079d1952fdd2aeb668f785a804bcedfd6b8115ef (diff)
downloadpfsense-f4a8e38c6ed250e9a18c4e472481541198231cdb.zip
pfsense-f4a8e38c6ed250e9a18c4e472481541198231cdb.tar.gz
Resolves #2910. Make apinger write its status file just after starting so that thing work as expected
-rw-r--r--etc/inc/gwlb.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index 32ffd30..ba9129d 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -252,6 +252,8 @@ EOD;
@unlink("{$g['varrun_path']}/apinger.status");
sleep(1);
mwexec_bg("/usr/local/sbin/apinger -c {$g['varetc_path']}/apinger.conf");
+ sleep(1);
+ sigkillbypid("{$g['varrun_path']}/apinger.pid", "USR1");
return 0;
}
OpenPOWER on IntegriCloud