[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: as uid USERNAME and gid GROUPNAME not working
From: |
Jan-Henrik Haukeland |
Subject: |
Re: as uid USERNAME and gid GROUPNAME not working |
Date: |
Tue, 22 Feb 2011 18:33:15 +0100 |
On Feb 22, 2011, at 6:11 PM, forsaleinsf wrote:
> not sure if i missing something else
You are probably missing some environment stuff. As it says in the wiki FAQ
http://mmonit.com/wiki/Monit/FAQ#execution
For security reasons monit purges the environment and only sets a spartan PATH
variable that contains /bin, /usr/bin, /sbin and /usr/sbin. If your program or
script dies, the reason could be that it expects certain environment variables
or to find certain programs via PATH. If this is the case you should set the
environment variables you need directly in the start or stop script called by
monit.