monit-dev
[Top][All Lists]
Advanced

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

Re: manually cvs checkin notification


From: Martin Pala
Subject: Re: manually cvs checkin notification
Date: Sat, 14 Feb 2004 23:29:47 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040122 Debian/1.6-1

Jan-Henrik Haukeland wrote:
- Deletion of the monit pid file is done as the last thing before exit()
  to ensure that no other monit daemon can start before the current is
absolutely finnished. There existed a small window.

This will not work:

    ...
    gc();
    log_close();
    finalize_files();
    exit(0);
  }

... it has the same effect as described with atexit case


The pidfile should be created and removed by daemon only.


Martin





reply via email to

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