monit-dev
[Top][All Lists]
Advanced

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

monit ./monit_http.c ./monitor.c http/engine.c


From: Martin Pala
Subject: monit ./monit_http.c ./monitor.c http/engine.c
Date: Sun, 14 Sep 2003 07:27:05 -0400

CVSROOT:        /cvsroot/monit
Module name:    monit
Branch:         
Changes by:     Martin Pala <address@hidden>    03/09/14 07:27:05

Modified files:
        .              : monit_http.c monitor.c 
        http           : engine.c 

Log message:
        1.) Wait for monit http server thread to join before calling garbage 
collector
        and close filedescriptors and logs.
        
        I hope this is correct way to do it - please check the implementation 
(tested
        on debian - works well). Thread is not detached now.
        
        This should solve race condition which occured during monit quit. I 
think there
        were some problems related to http server stopping when monit was 
running from
        init - maybe this patch could help in this problem too.
        
        2.) console output changed and unified - we now print the message on the
        begining of http server stop operation and status message as soon as 
the http
        server will exit.
        
        In the log you will see:
        
        [CEST Sep 14 13:16:41] monit daemon stopping
        [CEST Sep 14 13:16:41] monit HTTP server stopping
        [CEST Sep 14 13:16:41] monit HTTP server stopped
        [CEST Sep 14 13:16:41] monit daemon with pid [4943] killed
        
        And on the console:
        
        monit daemon stopping
        monit daemon with pid [4943] killed

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/monit/monit/monit_http.c.diff?tr1=1.17&tr2=1.18&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/monit/monit/monitor.c.diff?tr1=1.66&tr2=1.67&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/monit/monit/http/engine.c.diff?tr1=1.29&tr2=1.30&r1=text&r2=text





reply via email to

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