SUMMARY: daemon.log messages in dxconsole after stop/start syslogd

From: Randy Rodgers <rrodgers_at_ci.ft-wayne.in.us>
Date: Tue, 19 May 1998 16:29:56 -0500

After posting my summary I got a response from Vinzenz Esser
vinzenz_at_emas.comm resolved my problem.

>
> Original question:
>
> > I have a script that runs once a week that does the following:
> >
> > /sbin/init.d/syslog stop
> > mv /var/adm/binary.errlog
/usr/local/logs/binerrlogs/binary.errlog.yymmdd
> > cp /dev/null /var/adm/binary.errlog
> > /sbin/init.d/syslog start
> >
> > Since upgrading to V4.0b, when ever this runs the messages that would
> > normally go into /var/adm/syslog.dated/?/daemon.log are displayed on the
> > dxconsole instead. If I reboot things go back to normal.
> >
> > Can anyone explain why this is happening & how to get it corrected?
> >

============================================================================
========
Don't remember seeing this the first time it came around.

binlogd is the guy who logs to binary.errlog, not syslogd. binlogd logs
messages
in binary format, while syslogd logs messages in readable text format.

Note that '/sbin/init.d/syslog stop' does not stop binlogd, it only stops
syslogd (it starts both of them though). To roll over binary.errlog it's not
necessary to cycle syslogd. You can limit your script to the mv/cp commands
wrapped into killing/starting binlogd.

If you cp binary.errlog into the backup file instead of renaming it, then
you
don't even need to cycle binlogd. I've done that numerous times and have
never
seen any ill side effects.

I know this doesn't answer the real question, but it's a different approach
to
what you are trying to accomplish and it makes your problem disappear.

Hope this helps,

Vinzenz
--
Vinzenz Esser
EMASS Technical Support
Englewood, Colorado
E-Mail: Vinzenz_Esser_at_emass.com
Phone:  (303) 705-3864
Fax:    (303) 792-2465
============================================================================
========
This gave me exactly what I needed to fix my problem.
Randy Rodgers
Senior Systems Programmer
Allen County Information Systems
RM B16 - City/County Building
One Main Street
Fort Wayne, IN 46802
(219) 427-5727
rrodgers_at_ci.ft-wayne.in.us
Received on Tue May 19 1998 - 23:31:20 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:37 NZDT