monit-general
[Top][All Lists]
Advanced

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

Re: Apache start command


From: Martin Pala
Subject: Re: Apache start command
Date: Mon, 27 Aug 2012 16:34:24 +0200

Hello,

your start script most probably depends on some environment variable, which is 
not present when it is started via Monit. For security reasons Monit sets 
sandbox for program execution and sets only spartan PATH variable:

        PATH=/bin:/usr/bin:/sbin:/usr/sbin 

You can log the script output by wrapping it like this:

        start program = "/bin/bash -c '/usr/local/apache2/bin/apachectl -k 
start >> /tmp/start.log 2>&1'"


Regards,
Martin


On Aug 27, 2012, at 10:48 AM, Ajay Padhi <address@hidden> wrote:

> Dear Team,
> 
> The command for starting the apache service is 
> /usr/local/apache2/bin/apachectl -k start.
> 
> I am using the above command to start apache service .But monit is unable to 
> start the apache
> 
> Please let me know to start apache, using the above command.
> 
> regards,
> Ajay Padhi
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general




reply via email to

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