[Top][All Lists]

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

Re: start program with timeout

From: Martin Pala
Subject: Re: start program with timeout
Date: Fri, 3 Feb 2012 01:17:24 +0100


did you reloaded monit after the configuration was changed? (using "monit reload" or just restart monit). The excerpt from the http interface contains also the uid/gid, which is not present in the configuration file snip => i think it most probably presents the previous configuration.


On Feb 2, 2012, at 10:41 PM, Michael Kintzer wrote:


Using monit 5.3.2 on CentOS 2.6.18-238.19.1.el5.028stab092.2 x86_64 GNU/Linux.

I'm trying to set a longer timeout on a start program line, but it doesn't seem to be taking.  Any advice appreciated.

check process xyz
  with pidfile
  start program = "start_program_cmd" with timeout 90 seconds 
  stop program = "stop_program_cmd"

When I look at the monitored program in the httpd server, it shows:

Start program

  'start_program_cmd' as uid 500 as gid 500 timeout 30 second(s)

And after 30 seconds it reports a start failure, because the process I'm starting takes longer than 30 seconds to initialize.   According to the documentation I read, "with timeout" is supported on Monit versions > 5.0


To unsubscribe:

reply via email to

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