[SunHELP] Why does syslogd write to messages.2?

DAUBIGNE Sebastien - BOR sunhelp at sunhelp.org
Fri Jul 27 03:55:56 CDT 2001


Check if the /usr/lib/newsyslog scipt is activated in root's crontab
(usually every Monday).

The purpose of this script is to cycle /var/adm/messages* files.
Each time it is activated, it moves messages to messages.1, then  =
messages.1
to messages.2, and so on.
Then it sends SIGHUP signal to syslogd to force it to reopen messages.  =

The script relies on the /etc/syslog.pid file to catch syslogd PID.

If the file /etc/syslog.pid contains a bad PID, the syslogd will not =
reopen
messages, and continue to write in messages.1, then messages.2, and so =
on.
There are chances that your buggy servers will write to messages.3 next
monday.

You can force messages file's reopening by tracking syslogd pid (ps -ef =
|
grep syslogd), and the issue  :
kill -HUP  <syslogd_PID>

Also, update /etc/syslog.pid file :

echo  <syslogd_PID>   >  /etc/syslogd.pid

---
Sebastien DAUBIGNE=20
sebastien.daubigne at sema.fr - 05.57.26.56.36
Sema Global Services - AFM/DW/Pessac


	-----Message d'origine-----
	De:	Michael Keplinger [SMTP:mkeplinger at yahoo.com]
	Date:	vendredi 27 juillet 2001 03:15
	=C0:	sunhelp at sunhelp.org
	Objet:	[SunHELP] Why does syslogd write to messages.2?

	I am responsible for about 8 E4500 and 420R Sun
	servers and on 6 of the 8 servers all of the messages
	generated by syslogd are written to
	/var/adm/messages.2 instead of /var/adm/messages.  Any
	ideas as to why?

	Mike Keplinger
	NMCI Project
	NAS - North Island
	mkeplinger at yahoo.com

	__________________________________________________
	Do You Yahoo!?
	Make international calls for as low as $.04/minute with Yahoo!
Messenger
	http://phonecard.yahoo.com/
	_______________________________________________
	SunHELP maillist  -  SunHELP at sunhelp.org
	http://www.sunhelp.org/mailman/listinfo/sunhelp



More information about the SunHELP mailing list