From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078708811685.tru64-unix-managers.marc@archive.invalid> From: Randy Rodgers Date: Tue, 19 May 1998 21:29:56 +0000 To: tru64-unix-managers Subject: SUMMARY: daemon.log messages in dxconsole after stop/start syslogd X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078708811685 After posting my summary I got a response from Vinzenz Esser vinzenz@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@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@ci.ft-wayne.in.us