[Top][All Lists]

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

as uid USERNAME and gid GROUPNAME not working

From: forsaleinsf
Subject: as uid USERNAME and gid GROUPNAME not working
Date: Mon, 21 Feb 2011 14:45:12 -0800 (PST)

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 
    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?


reply via email to

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