From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fa528,2b98c58917e47f64 X-Google-Attributes: gidfa528,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!newshub.sdsu.edu!cyclone.bc.net!snoopy.risq.qc.ca!newsflash.concordia.ca!not-for-mail From: Sylvain Robitaille Newsgroups: comp.unix.tru64 Subject: Re: Automatically reconnect to syslog Date: 12 Oct 2004 19:55:38 GMT Organization: Concordia University, Montreal, Canada Message-ID: References: <857f7aa6.0410110342.171cc990@posting.google.com> NNTP-Posting-Host: alcor.concordia.ca NNTP-Posting-User: syl User-Agent: slrn/0.9.7.4 (OSF1) Xref: g2news1.google.com comp.unix.tru64:341 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 ----------------------------------------------------------------------