On Thu, Mar 13, 2008 at 8:37 PM, Martin Pala <[EMAIL PROTECTED]> wrote: > Various examples are here: > http://www.tildeslash.com/monit/doc/examples.php >
But I didn't find any "recipe" about: ---------------------------------------------------------------------------------- 1. Do not launch the program directly from monitrc. Invoke a shell script from monitrc, and the shell script first should set all the environment variables (and also don't forget to export them. Simply take all environment variables from "env" command, and place in this shell script), and then invoke your program. Make sure when the process starts, the process pid and the entry in pid file is same. 2. Inside this shell script and monitrc file, you MUST enter ALL file names with its full path. For example, the program to be monitored (and pid file, if you make use of this in the shell script) should be invoked using full absolute path, even if its path is there in PATH environment variable. ----------------------------------------------------------------------------- Does anyone has such script to acts as an example? Best regards, -- To unsubscribe: http://lists.nongnu.org/mailman/listinfo/monit-general
