Hi,
Asking the following question again as I have not received any replies yet.
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
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general