Skip to content

Commit

Permalink
Immediately touch metrics-monit-runner log files to ensure their pres…
Browse files Browse the repository at this point in the history
…ence when forwarding config is generated
  • Loading branch information
dpb587 committed Aug 4, 2014
1 parent 38b4593 commit 88eb323
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jobs/logsearch-shipper/templates/bin/metrics-monit.control
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ exec 2>&1
case $1 in

start)
# sub-monit takes a moment to start its processes; ensure these files exist
# sooner for our log-forwarding peer
touch /var/vcap/sys/log/logsearch-shipper/metrics-monit-runner.metrics.log
touch /var/vcap/sys/log/logsearch-shipper/metrics-monit-runner.stderr.log

/var/vcap/jobs/logsearch-shipper/bin/metrics-monit.generate-config > $MONITCONF
chmod 600 $MONITCONF

Expand Down

0 comments on commit 88eb323

Please sign in to comment.