monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [monit] Unable to monitor lighttpd's spawn-fcgi


From: Thomas
Subject: Re: [monit] Unable to monitor lighttpd's spawn-fcgi
Date: Thu, 13 Mar 2008 22:22:50 +0100

On Thu, Mar 13, 2008 at 8:37 PM, Martin Pala <address@hidden> 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,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]