Actually restart services in logstash watchdog

Give full rooted paths to stop and start so that the executables are
found resulting in service restarts.

Change-Id: I4f2ded0a57c9f73b7c5afcbaab5827500cd4467b
This commit is contained in:
Clark Boylan 2014-03-01 08:47:16 -08:00
parent 5236d2b2fe
commit 0aa8a50910
1 changed files with 2 additions and 2 deletions

View File

@ -18,6 +18,6 @@ echo "$RESULT" >> /var/log/logstash/watchdog.log
if [ "$CURL_RET" == "0" ] && [ "$RESULT" == "true" ] ;
then
echo "restarting" >> /var/log/logstash/watchdog.log
stop --quiet logstash-indexer
start --quiet logstash-indexer
/sbin/stop --quiet logstash-indexer
/sbin/start --quiet logstash-indexer
fi