Operating System - HP-UX
1840234 Members
2895 Online
110162 Solutions
New Discussion

sulog and syslog lost after system restart

 
SOLVED
Go to solution
Michael Piechowski
New Member

sulog and syslog lost after system restart

unsure how to disable this - want the files to continue to append instead of deleting the existing file and starting over.
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor
Solution

Re: sulog and syslog lost after system restart

Hi Michael:

The files are not lost; they are renamed. The 'syslog' is renamed 'OLDsyslog' and the 'sulog' renamed 'OLDsulog'.

The rationale is to keep the files manageable size. Too, since the dates recorded in each file do *not* include a year value, it is cleaner to handle them this way.

Regards!

...JRF...
Patrick Wallek
Honored Contributor

Re: sulog and syslog lost after system restart

You would have to modify the /sbin/init.d/syslogd script so that it will not do the 'mv /var/adm/syslog/syslog.log /var/adm/syslog/OLDsyslog.log'

The cleanup of sulog is controlled by /sbin/init.d/clean_adm. This script also cleans diaglog and messages if they exist.

If you want to stop this completely modify /etc/rc.config.d/clean and set CLEAN_ADM=0

Michael Piechowski
New Member

Re: sulog and syslog lost after system restart

Gentlemen...

thanks for the assist - this is exactly what I needed (especially today) !