Here is an extract from the log, with additonal comments as I *may* have an idea of the problem
Mon Feb 4 08:28:07 MST 2008 restart bs1 # this is me issueing the command for the restart [MST Feb 4 08:28:07] info : restart service 'bs1' on user request [MST Feb 4 08:28:07] info : monit daemon at 10762 awakened [MST Feb 4 08:28:07] info : Awakened by User defined signal 1 [MST Feb 4 08:28:07] info : 'bs1' trying to restart [MST Feb 4 08:28:07] debug : Monitoring disabled -- service bs1 [MST Feb 4 08:28:07] info : 'bs1' stop: /opt/unb/bin/bs.sh # everything as expected so far [MST Feb 4 08:28:08] debug : 'bs1' Error testing process id [10793] -- No such process [MST Feb 4 08:28:08] debug : 'bs1' Error testing process id [10793] -- No such process [MST Feb 4 08:28:08] debug : 'bs1' Error testing process id [10793] -- No such process # now why is monit complaining about the process it says it has stopped monitoring [MST Feb 4 08:28:08] info : 'bs1' start: /opt/unb/bin/bs.sh # this does work and did start it running as shown by ps output [MST Feb 4 08:28:08] debug : 'bs1' Error testing process id [10793] -- No such process # and by this point the pid in the pid file should have the new pid in it [MST Feb 4 08:28:08] debug : Monitoring enabled -- service bs1 . . . . [MST Feb 4 08:28:09] debug : monit: pidfile '/var/run/bs1.pid' does not exist [MST Feb 4 08:28:10] debug : monit: pidfile '/var/run/bs1.pid' does not exist [MST Feb 4 08:28:11] debug : monit: pidfile '/var/run/bs1.pid' does not exist # continues this until the next scheduled check on processes . . . [MST Feb 4 08:30:08] debug : monit: pidfile '/var/run/bs1.pid' does not exist [MST Feb 4 08:30:08] error : 'bs1' process is not running [MST Feb 4 08:30:08] info : 'bs1' trying to restart [MST Feb 4 08:30:08] debug : Monitoring disabled -- service bs1 [MST Feb 4 08:30:08] debug : monit: pidfile '/var/run/bs1.pid' does not exist [MST Feb 4 08:30:08] debug : monit: pidfile '/var/run/bs1.pid' does not exist [MST Feb 4 08:30:08] info : 'bs1' start: /opt/unb/bin/bs.sh # so here we go starting the second copy of the same process running [MST Feb 4 08:30:08] debug : monit: pidfile '/var/run/bs1.pid' does not exist [MST Feb 4 08:30:08] debug : Monitoring enabled -- service bs1 # and from here on monit is happy about the second copy but the first one is still there as well -- To unsubscribe: http://lists.nongnu.org/mailman/listinfo/monit-general
