[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [monit] Unable to monitor lighttpd's spawn-fcgi
From: |
Divakar Singh |
Subject: |
RE: [monit] Unable to monitor lighttpd's spawn-fcgi |
Date: |
Thu, 13 Mar 2008 10:41:30 +0530 |
Right Martin,
The solution in this case is:
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.
Hope this helps.
Take Care
-Divakar.
-----Original Message-----
From: address@hidden
[mailto:address@hidden
On Behalf Of Martin Pala
Sent: Thursday, March 13, 2008 5:19 AM
To: This is the general mailing list for monit
Subject: Re: [monit] Unable to monitor lighttpd's spawn-fcgi
When monit starts the program, it sets spartan environment variables as
sandbox ... the problem will be most probably here - you'll need to
check the environment.
Martin
Thomas wrote:
> Hi list,
>
> I am running lighttpd's spawn-fcgi program tfor handling php scripts
> through nginx. For some reason, Monit is capable of monitoring an
> exsiting spawn-fcgi process, but if I stop that process manually, it
> cannot restart it.
>
> My start/stop script in /etc/init.d works perfectly for starting and
> stopping spawn-fcgi manually and at boot, but when Monit tries to
> launch it, it doesn't work and the spawn-fcgi's pid file doesn't get
> created.
>
> Any idea where that problem could come from?
>
>
> Best regards,
>
>
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general