Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Sylvain Robitaille <syl@alcor.concordia.ca>
Subject: Re: Automatically reconnect to syslog
Date: 12 Oct 2004 19:55:38 GMT	[thread overview]
Message-ID: <slrncmodlq.77ep.syl@alcor.concordia.ca> (raw)
In-Reply-To: 857f7aa6.0410110342.171cc990@posting.google.com

Jeroen wrote:

> The program is continuously loggin to syslog (this works fine) but
> when syslog is stopped and restarted, my prog does not log to syslog
> anymore.  Once I have restarted the prog, logging is again directed to
> syslog.

This problem is caused by the fact that when syslogd is restarted, it
creates a new /dev/log socket, instead of using an existing one which
may be held open by client processes.  Your program (and many others,
including arguably critical software such as Sendmail and Bind) is
holding the old /dev/log socket open, and writing to that instead of
the new one created by the new syslogd process.

This has been reported to DEC/Compaq/HP as a bug in syslogd, and I'm
reasonably certain that they're looking into a fix that would accomodate
their design, and still produce the intended result in the case that
syslogd needs to be restarted, but I've not yet seen a fix myself, nor
have I heard from them about this matter in a while.

I'm not aware of an easy workaround that would permit automatic
restarting of processes with the /dev/log socket open.

-- 
----------------------------------------------------------------------
Sylvain Robitaille                              syl@alcor.concordia.ca
 
Systems analyst                                   Concordia University
Instructional & Information Technology        Montreal, Quebec, Canada
----------------------------------------------------------------------


      reply	other threads:[~2004-10-12 19:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-11 11:42 Automatically reconnect to syslog Jeroen
2004-10-12 19:55 ` Sylvain Robitaille [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox