On Sep 8, 2011, at 9:29 AM, blp330 wrote:

> Thank you. I tried this way before, and tried again. 
> There was still no any output to /tmp/apache2_start.out, (even file not
> created)

Make sure your original start program statement is fixed. You cannot write a 
script in your start/stop statement; Monit pass what you write here to exec. So 
in your original statement when you have,

  start program = "/usr/bin/env HOME=/home/nuwa 
/home/nuwa/webapps/unicorn/apache2/bin/start"

Monit will do exec on '/usr/bin/env' and the rest of the string is taken as 
argument to env. Not sure why you use the env call, but if you want to run this 
as a script you need to wrap it in a shell like,

 start program = "/usr/bin/bash -c 'HOME=/home/nuwa; 
/home/nuwa/webapps/unicorn/apache2/bin/start'"
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to