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: rory
Subject: Re: Problem with running monit from init and using 'kill -9' on linux
Date: Wed, 30 Oct 2002 08:58:24 -0800 (PST)

I don't advocate using kill -9.

However, what if something happens and monit crashes in a similiar way?

Then when init restarts monit, it won't do it correctly.

> 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
>
>
> _______________________________________________
> monit-dev mailing list
> address@hidden
> http://mail.nongnu.org/mailman/listinfo/monit-dev







reply via email to

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