2013-07-06 00:56:13 -07:00
|
|
|
set daemon 30
|
2013-09-17 15:56:16 -07:00
|
|
|
|
2013-07-05 23:24:30 -07:00
|
|
|
set logfile /var/log/monit.log
|
|
|
|
|
2013-07-06 00:56:13 -07:00
|
|
|
check process redis with pidfile /var/run/redis.pid
|
2013-09-17 15:56:16 -07:00
|
|
|
stop program = "/etc/monit/monit_debug.sh /etc/init.d/redis stop"
|
2013-07-06 00:56:13 -07:00
|
|
|
as uid root and gid root
|
2013-09-17 15:56:16 -07:00
|
|
|
start program = "/etc/monit/monit_debug.sh /etc/init.d/redis start"
|
2013-07-06 00:56:13 -07:00
|
|
|
as uid root and gid root
|
2013-09-17 15:56:16 -07:00
|
|
|
# if failed host 127.0.0.1 port 6379 then restart
|