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:
parent
e6efff22f6
commit
f32c5808d8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user