Eric Cooper wrote:
> On Mon, May 05, 2008 at 03:16:45AM -0400, JP Vossen wrote:
>> When run from '/etc/init.d/approx start' the approx daemon should
>> write a PID file, but it's not.  Something missing in the init
>> script?
>
> I removed the pidfile creation some time ago, and the init script just
> kills approx by name.

Sorry, I missed that in the change log.


>   Does the lack of a pidfile cause any problem?

A PID file would facilitate daemon monitoring of the process e.g., by http://www.tildeslash.com/monit/doc/examples.php. I worked around it via this port checking:

        # Check approx, since it has no PIDFILE, we can only do this
        check host foo with address foo.example.com
            if failed port 9999 protocol http
              request /debian/dists/etch/Release.gpg
              then alert

It seems to me that more daemons write PIDFILES than not, but not a big deal either way.

Thanks,
JP



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to