Answer the question
In order to leave comments, you need to log in
Monitoring with monit
Hello!
Help me understand why monit doesn't want to raise my daemon?
Created a file: /etc/monit/conf.d/deamon.monitrc
However monit doesn't want to bring the daemon up when I stop it. Where is the mistake?
Thanks in advance!
set daemon 10
check process php5 with pidfile "/var/run/elf-deamon.pid"
start program = "/etc/init.d/elf-deamon start"
stop program = "/etc/init.d/elf-deamon stop"
Answer the question
In order to leave comments, you need to log in
Perhaps he checks from his rights.
But the right to execute
start program = "/etc/init.d/elf-deamon start"
stop program = "/etc/init.d/elf-deamon stop"
is enough for him??
Sneaky monit loves the presence of stepping in start-stops and a+x rights :)
Check with your eyes using the echo "start/stop" >> /var/log/monit_debug.log method in the relevant sections of your init scripts and also check whether the pid is adequate to go to warran .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question