savelog
cron.daily runs a script sysklogd to rotate the logs in /var/log with
savelog. I have added some logs to the defaults, but one of them doesn't
get rotated. Is there a way to reconfigure what happens with this script:
#! /bin/sh
# sysklogd Cron script to rotate system log files daily.
#
# If you want to rotate logfiles daily, edit
# this script.
#
# Written by Martin Schulze <joey@debian.org>.
# $Id: cron.daily,v 1.1 1997/06/10 21:07:41 joey Exp $
cd /var/log
for LOG in syslog
do
if [ -f $LOG ]; then
savelog -g adm -m 640 -u root -c 4 $LOG >/dev/null
fi
done
# Restart syslogd
#
/etc/init.d/sysklogd reload
It may be obvious, but I am a bit bash-challenged.
Bob
----
Bob Nielsen Internet: nielsen@primenet.com
Tucson, AZ AMPRnet: w6swe@w6swe.ampr.org
http://www.primenet.com/~nielsen
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to:
- Follow-Ups:
- Re: savelog
- From: Remco van de Meent <remco@oloon.student.utwente.nl>
- Re: savelog
- From: Martin Schulze <joey@debian.novare.net>
- Re: savelog
- From: Steve Mayer <smayer@rtd.com>