cnfsstat can't write to syslog after restart syslogd
Alexander Koch
alexander.koch at ilk.de
Mon Dec 30 09:27:31 UTC 2002
hi,
after restarting syslogd cnfsstat can't write to /dev/log.
send(4, "<61>cnfsstat[21604]: Class GROSS"..., 207, 0) = -1 ENOTCONN
(Transport endpoint is not connected)
I had modified cnfsstat that it open's the log before write to it and close
it after write.
It works for me. Perhaps it works for you too.
diff cnfsstat.ori bin/cnfsstat
8a9,11
> # Modified by Alexander Koch 2002
> # <alexander.koch at ilk.de>
> #
65d67
< Sys::Syslog::setlogsock('unix') if $OSNAME =~ /linux|freebsd|dec_osf/;
67d68
< openlog ('cnfsstat', 'pid', $inn::syslog_facility);
279a281,282
> Sys::Syslog::setlogsock('unix') if $OSNAME =~ /linux|freebsd|dec_osf/;
> openlog ('cnfsstat', 'pid', $inn::syslog_facility);
282a286,287
> closelog;
>
Happy New Year.
--
Alexander Koch eMail: ak at ilk.de
ILK Internet GmbH Tel: +49 721 9100 0
Akademiestrasse 25-27 Fax: +49 721 9100 191
D-76133 Karlsruhe WWW: http://www.ilk.de
More information about the inn-workers
mailing list