summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-09-06 16:13:42 +0000
committerErmal <eri@pfsense.org>2010-09-06 16:13:42 +0000
commit298e5e0ab913f32759805b5dc5ba204eb3795609 (patch)
tree10687fd140f5bbeb0df471a9314669e33df6e359 /etc/inc
parentcfdf944442a11cd3ae1f37e347b6cff1afe03986 (diff)
downloadpfsense-298e5e0ab913f32759805b5dc5ba204eb3795609.zip
pfsense-298e5e0ab913f32759805b5dc5ba204eb3795609.tar.gz
Ticket #876. Remove old status file of apinger before restarting because it might confuse gui.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/gwlb.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index d5da8a8..848a62c 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -69,7 +69,7 @@ pid_file "{$g['varrun_path']}/apinger.pid"
status {
## File where the status information whould be written to
- file "/tmp/apinger.status"
+ file "{$g['tmp_path']}/apinger.status"
## Interval between file updates
## when 0 or not set, file is written only when SIGUSR1 is received
interval 10s
@@ -249,6 +249,7 @@ EOD;
@chown("{$g['vardb_path']}/rrd", "nobody");
/* start a new apinger process */
+ @unlink("{$g['tmp_path']}/apinger.status");
mwexec_bg("/usr/local/sbin/apinger -c {$g['varetc_path']}/apinger.conf");
return 0;
OpenPOWER on IntegriCloud