monit-general
[Top][All Lists]
Advanced

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

Re: [monit] Monitoring processes without a pidfile


From: Brian Downey
Subject: Re: [monit] Monitoring processes without a pidfile
Date: Mon, 21 Jul 2008 09:52:48 -0700


On Jul 21, 2008, at 9:43 AM, Daniel Clark wrote:

Is there syntax I'm missing or a "trick" to monitor a process where
the daemon does not support the use of pid files?

Not any that I've been able to find. Generally we just use a wrapper script
to drop ${$} into a pid file, then `exec' the actual program.

I've thought of wrapping the daemon in a shell script or something,
but that wouldn't work out with logrotate et all doing a "kill -HUP"
of the process (one could of course make that use the wrapper as well,
but then things start to seem really kludgey).

Our approach was to simply use monit to handle everything. In your postrotate
you'd put "monit restart <process>" instead of the kill.

-Brian




reply via email to

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