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:55:00 +0000
commit265be6f5ab7d5546a8f26ae6bcae33712f861102 (patch)
tree2e49817ea85f9fcb92e59cab00342591f2ad9599
parent97c98f19ff865ece5638880f3e527d862c912a5a (diff)
downloadpfsense-265be6f5ab7d5546a8f26ae6bcae33712f861102.zip
pfsense-265be6f5ab7d5546a8f26ae6bcae33712f861102.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 689f77c..899fe3e 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -238,6 +238,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