[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 07:03:29 +0100

On Feb 21, 2011, at 11:45 PM, forsaleinsf wrote:

> running monit 5.2.3 - downloaded today.
> I am running monit as root:
> address@hidden shared]# service monit start
> Starting monit: Starting monit daemon
>                                                           [  OK  ]
> address@hidden shared]# ps -ef | grep monit
> root     32390     1  0 14:38 ?        00:00:00 /usr/local/monit_523/bin/monit
> my file in /etc/monit.d/ is :
> check process resque with pidfile /var/tmp/
>    start program = "/data/apps/smp/shared/start-resque" as uid deploy and gid 
> deploy
>    stop program = "/bin/kill -9 `cat /var/tmp/`"
> if i run the command on the cli as the deploy user everything works well.
> in the manual i read monit would ignore the as uid and gid option if monit 
> was not run by root - this seems like what monit is doing, even though it 
> being run by root.
> has anyone seen this?

Please make sure that Monit starts the resque process. If resque was already 
started when you started Monit then it will of course run as the user it was 
started with. If the problem is that Monit does not switch uid/gid and starts 
the resque program as root, please check the Monit log or /var/log/messages to 
see if there are any errors there. 

reply via email to

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