|
From: | Eric Pailleau |
Subject: | Re: [monit] Asking again: unable to restart processes via monit |
Date: | Thu, 29 Apr 2010 17:44:33 +0200 |
User-agent: | Thunderbird 2.0.0.23 (X11/20090822) |
You can also doing the user switch in the monit exec command because root don't have to give the password. .. then exec "/bin/su - postfix -c '/some/path/to/java -classpath .....'"
The launch command is of type : sudo -u postfix java -classpath ..... xyz.java
[Prev in Thread] | Current Thread | [Next in Thread] |