monit-general
[Top][All Lists]
Advanced

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

Re[2]: Restart in chek file


From: Sergey Bondarev
Subject: Re[2]: Restart in chek file
Date: Thu, 15 Dec 2011 16:24:42 +0400

Hello Marcus,

Wednesday, December 14, 2011, 5:39:32 PM, you wrote:

MM> Am 14.12.2011 14:16, schrieb Sergey Bondarev:
>> Hello ,
>>
>> monit config:
>>
>>      start program = "/etc/init.d/httpd start"
>>      stop program = "/etc/init.d/httpd stop"

>> httpd stoped, but NOT starting again !!!

MM> What does "/etc/init.d/httpd status" say?

httpd is not running
ps ax | grep httpd  - not show process

MM> Does "/etc/init.d/httpd start" work when entered manually?
yes.

MM> (For example under gentoo it is good use to modify the start/stop lines to:
CentOS
 >>        start program = "/etc/init.d/apache2 zap start"
 >>        stop program = "/etc/init.d/apache2 stop zap"

MM> for gentoos rc-system sometimes leaves the service in another state as
MM> "stopped", especially when the service crashed; and gentoo does not 
MM> start a service unless it is manually set to a stopped state.

This service work nice:

check process apache with pidfile /var/run/httpd.pid
    start program = "/etc/init.d/httpd start"
    stop program = "/etc/init.d/httpd stop"



С уважением,
 Бондарев Сергей
 ООО Фирма "Техно-Р" 
 т. +7(4732)539954                                 mailto:address@hidden




reply via email to

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