[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[monit] unable to restart processes via monit
From: |
Sharma, Ashish |
Subject: |
[monit] unable to restart processes via monit |
Date: |
Mon, 19 Apr 2010 07:21:02 +0000 |
Hi,
I have deployed monit on one of my server nodes.
The problem I am facing is that the processes that have to run with non 'root'
user privileges are not being restarted and killed by monit.
Following are the rules that I appended in '/etc/monitrc'
check process postoffice.sh with pidfile "/mnt/EmailOffice/PId.txt"
start program = "/mnt/EmailOffice/postoffice.sh start"
stop program = "/mnt/EmailOffice/postoffice.sh stop"
check process emailfilter.sh with pidfile "/mnt/Email-filter/PId.txt"
start program = "/mnt/Email-filter/emailfilter.sh start"
stop program = "/mnt/Email-filter/emailfilter.sh stop"
In the above rules, process "postoffice.sh" is launched via the shell script
with 'root' privileges and is controllable via monit,
While process "emailfilter.sh" is launched via the shell script with 'postfix'
user privileges and I am not able to start or kill it via monit.
The launch command is of type : sudo -u postfix java -classpath ..... xyz.java
I am unable to understand what am I doing wrong.
Please help
Thanks in advance
Ashish Sharma
- [monit] unable to restart processes via monit,
Sharma, Ashish <=