[Top][All Lists]

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

Re: Always "Excution failed" to run "httpd".

From: Jan-Henrik Haukeland
Subject: Re: Always "Excution failed" to run "httpd".
Date: Thu, 8 Sep 2011 09:53:58 +0200

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 

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; 

reply via email to

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