monit-dev
[Top][All Lists]
Advanced

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

Re: Problem with running monit from init and using "kill -9" on linux


From: Jan-Henrik Haukeland
Subject: Re: Problem with running monit from init and using "kill -9" on linux
Date: 30 Oct 2002 09:21:12 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Civil Service)

Rory Toma <address@hidden> writes:

> I've notice a problem with the http server, init and kill -9 on linux.
> If I kill -9 the main monit process, the http thread is temporarily in a
> defunct state, long enough to prevent it from restarting due to binding
> to a socket already in use.
 
How about using kill -SIGTERM this should gracefully terminate monit
and close the http server socket connection properly. The problem with
using kill -9 is that this signal takes down the process immediately
without giving monit a chance to cleanup.

> I suggest that I add a loop when starting that will try a few times
> before giving up if we're in init mode.

If 2 + 2 equals 5 I think it's better to fix the root cause instead of
retrying until it equals 4 :-)

-- 
Jan-Henrik Haukeland




reply via email to

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