check process insert with pidfile /tmp/service.pid
start program "/root/init.sh start"
stop program "/root/init.sh stop"
depends on redis-server
When I start the insert process, monit starts it and also starts redis-server as expected but both at the same time. Given that my redis-server has to load a huge dataset, it takes about 40 seconds to initiate so insert start complaining about can't connecting to redis.
Is there a way that I can tell monit to make sure redis-server is in running state before execute the start of insert?
Thank you in advance.