Hi,
I've some problem with monit and Apache process.
My monitrc config is:
Quote:
set daemon 60
set logfile syslog facility log_daemon
check process apache2 with pidfile /var/run/apache2.pid
start program = "/root/scripts/apache.sh start"
stop program = "/root/scripts/apache.sh stop"
if failed host website.com port 80 protocol http
and request "/index.html"
then restart
|
when Apache died, it seems that only "stop" script is executed, not start!
/root/scripts/apache.sh is:
Quote:
case "$1" in
start)
/etc/init.d/apache2 start
;;
stop)
/etc/init.d/apache2 stop
;;
*)
;;
esac
exit 0
|
How can I solve this issue?
Thank you