monit-general
[Top][All Lists]
Advanced

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

Re: Init script fails to start


From: Tony DeMatteis
Subject: Re: Init script fails to start
Date: Mon, 08 Nov 2010 12:06:24 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.12) Gecko/20100915 Thunderbird/3.0.8

This is also interesting, log snippet... (when it is not running!)

[MST Nov  8 11:57:35] info     : 'nn_logger' process is running with pid 5114
[MST Nov  8 12:01:35] error    : 'nn_logger' process is not running

address@hidden admin]# ps aux | grep nn_logger
root      5370  0.0  0.0   3912   684 pts/3    S+   12:05   0:00 grep nn_logger


On 11/08/2010 12:01 PM, Tony DeMatteis wrote:
Hello,

New to monit.  Trying simple; start script if no pid file but init script fails to start.
I followed this thread with interest, but did not solve my problem.  I'm quite certain it
probably has to do with permissioning.

Thank you

http://lists.nongnu.org/archive/html/monit-general/2010-06/msg00002.html

/etc/monit.d/nn_logger.conf

Original config:

check process nn_logger pidfile /var/run/nn_logger.pid
start program = "/etc/init.d/nn_logger start'"
stop program = "/etc/init.d/nn_logger stop'"

Tried from thread suggestions:

check process nn_logger pidfile /var/run/nn_logger.pid
start program = "/bin/su - monit - c '/usr/sh /etc/init.d/nn_logger start'"
stop program = "/bin/su - monit - c '/usr/sh /etc/init.d/nn_logger stop'"

-- To unsubscribe: http://lists.nongnu.org/mailman/listinfo/monit-general

Attachment: tonyd.vcf
Description: Vcard


reply via email to

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