What is the default stop action?
Muhamed Huseinbašić <[email protected]>
| Newsgroups | gmane.comp.monitoring.monit.general |
|---|---|
| Message-ID | <VI1PR02MB305365501FA5E60E3E18EAAAF9E40@VI1PR02MB3053.eurprd02.prod.outlook.com> |
Hi everyone.
I am sorry if this exists in the docs, I couldn't find it anywhere.
E.g.:
check process rqworker1 matching "^/usr/bin/python.*/usr/local/bin/rqworker1"
start program = "/opt/startup/startstop.sh start rqworker1 owner /usr/bin/python /usr/local/bin/rqworker1 -c worker --name rqworker1"
stop = "/bin/bash -c 'kill $MONIT_PROCESS_PID'"
I know (correct me if I am wrong) that monit in this case exports correct PID under MONIT_PROCESS_PID and I can do whatever I want in the "stop" part.
Now, my question is what happens if I omit the "stop" part completely?
I.e. what exactly will be executed when I do "monit stop rqworker1"?
Is there some default stop command under the hood?
Thanks a lot.
Muhamed Huseinbašić
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general