> I tried that once...the logging processes stopped. Touching new files
> didn't work either. Linux 1.2.7.
I run the following shell script periodically as a cron job. There
are more elegant solutions (see this months Linux Gazette) but this
works fine for me. Deleting the files will stop logging as the inode
information is lost. You'd have to restart syslogd in that case.
---cut
jolietjake:~$ cat swaplogs
#!/bin/sh
/bin/rm /var/adm/*.oldlog
cp /var/adm/messages /var/adm/messages.oldlog
cat /dev/null >/var/adm/messages
cp /var/adm/syslog /var/adm/syslog.oldlog
cat /dev/null >/var/adm/syslog
cp /var/adm/debug /var/adm/debug.oldlog
cat /dev/null >/var/adm/debug
cp /var/adm/diald.log /var/adm/diald.oldlog
cat /dev/null >/var/adm/diald.log
cp /var/adm/session.log /var/adm/session.oldlog
cat /dev/null >/var/adm/session.log
---cut
Your specific log files will differ, of course.
me
--
---------------------------------------------------------------------
PGP Key fingerprint = | How are you gonna come?
6D 31 C3 00 77 8C D1 C2 | With your hands upon your head,
59 0A 01 E3 AF 81 94 63 | Or on the trigger of your gun?"
Send email with "get key" as the| -- The Clash, "Guns of Brixton"
"Subject:" to get my public key | _London_Calling_ , 1979
---------------------------------------------------------------------