########################################################################### ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## ########################################################################### check process corrade-elasticsearch-heartbeat matching "corrade\-elasticsearch\-heartbeat" start program "/bin/systemctl start corrade-elasticsearch-heartbeat" stop program "/bin/systemctl stop corrade-elasticsearch-heartbeat" #if failed port 9200 type tcp then restart # if 5 restarts within 5 cycles then timeout