check process redis with pidfile /var/run/redis/redis-server.pid group mail start program = "/bin/systemctl start redis" stop program = "/bin/systemctl stop redis" if failed port 6379 type tcp with timeout 10 seconds then restart if 5 restarts within 5 cycles then timeout