Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Automatically reconnect to syslog
@ 2004-10-11 11:42 Jeroen
  2004-10-12 19:55 ` Sylvain Robitaille
  0 siblings, 1 reply; 2+ messages in thread
From: Jeroen @ 2004-10-11 11:42 UTC (permalink / raw)


Hi all,

I am having a problem with one of my programs running on Compaq Tru64
UNIX V5.1A.

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.

I use the standard syslog commands: openlog() => when starting the
prog and closlog() => when stopping the prog.

Does somebody have any idea on how to set it up so that the logging
will automatically be resent to syslog once the syslog has been
restarted?

Regards,


Jeroen


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Automatically reconnect to syslog
  2004-10-11 11:42 Automatically reconnect to syslog Jeroen
@ 2004-10-12 19:55 ` Sylvain Robitaille
  0 siblings, 0 replies; 2+ messages in thread
From: Sylvain Robitaille @ 2004-10-12 19:55 UTC (permalink / raw)


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
----------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-10-12 19:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-11 11:42 Automatically reconnect to syslog Jeroen
2004-10-12 19:55 ` Sylvain Robitaille

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