Your message dated Sat, 11 May 2013 10:05:52 +0000
with message-id <[email protected]>
and subject line Bug#707655: Removed package(s) from unstable
has caused the Debian Bug report #104278,
regarding sysklogd log rotation is too inflexible
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
104278: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=104278
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sysklogd
Version: 1.4.1-2
ideally, it should co-operate with logrotate...but it's easy to see
why that may be impractical.
the following 3 patches go some way towards fixing it: they add a true
configuration file rather than requiring users to edit cron scripts.
/etc/default may not be the best location for the config file. pick
somewhere else if you can think of a better place.
patch 1: /etc/default/sysklogd
(default settings are the same as in your original scripts)
--- /etc/default/sysklogd.old Wed Jul 11 18:38:06 2001
+++ /etc/default/sysklogd Wed Jul 11 18:34:06 2001
@@ -0,0 +1,15 @@
+# NOTE: this configuration file is actually a shell script, so shell
+# syntax applies.
+
+# set to "true" if you want daily log rotation.
+DAILY="false"
+
+# extra options to add to all calls of syslogd-listfiles
+# (see man page to syslogd-listfiles for details)
+#S_OPTS="--ignore-size"
+
+# number of old weekly logs to keep
+W_CYCLE=4
+
+# number of old daily logs to keep
+D_CYCLE=7
patch 2: /etc/cron.weekly/sysklogd
--- /etc/cron.weekly/sysklogd.dpkg-dist Thu Apr 26 12:38:52 2001
+++ /etc/cron.weekly/sysklogd Wed Jul 11 18:51:36 2001
@@ -3,35 +3,45 @@
# sysklogd Cron script to rotate system log files weekly.
#
# If you want to rotate logfiles daily, edit
-# this script and /etc/cron.daily/sysklogd to get
-# the logfiles in sync (they must not occur in both
-# files). Do not delete this file itself, since
-# it will then be replaced after an upgrade creating
-# unwanted effects.
+# /etc/default/sysklogd and add the line:
#
-# This is a configration file. You are invited to edit
-# it and maintain it on your own. You'll have to do
-# that if you don't like the default policy
-# wrt. rotating logfiles (i.e. with large logfiles
-# weekly and daily rotation may interfere). If you edit
-# this file and don't let dpkg upgrade it, you have full
-# control over it. Please read the manpage to
-# syslogd-listfiles.
+# DAILY=true
+#
+# You no longer need to edit this file just because you
+# don't like the default policy for rotating large log
+# files, or want to add stuff to the syslogd-listfiles
+# command line. Instead, edit /etc/default/sysklogd and
+# add the line:
+#
+# S_OPTS="--ignore-size"
+#
+# Anything you set S_OPTS to will be added to the
+# command line which executes syslogd-listfiles.
+#
+# Please read the manpage to syslogd-listfiles for details.
#
# Written by Ian A. Murdock <[email protected]>.
+# config file feature added by Craig Sanders <[email protected]>
# $Id: cron.weekly,v 1.4 2001/03/11 23:00:53 joey Exp $
test -x /usr/sbin/syslogd-listfiles || exit 0
+test -e /etc/default/sysklogd && . /etc/default/sysklogd
+
+test "$DAILY" = "true" && exit 0
+
+# if W_CYCLE is not defined in /etc/default/sysklogd then
+# default to 4.
+test -z "$W_CYCLE" && W_CYCLE=4
cd /var/log
-for LOG in `syslogd-listfiles --weekly`
+for LOG in `syslogd-listfiles --weekly $S_OPTS`
do
if [ -s $LOG ]; then
- savelog -g adm -m 640 -u root -c 4 $LOG >/dev/null
+ savelog -g adm -m 640 -u root -c $W_CYCLE $LOG >/dev/null
fi
done
-for LOG in `syslogd-listfiles --auth`
+for LOG in `syslogd-listfiles --auth $S_OPTS`
do
if [ -s $LOG ]; then
chown root.adm $LOG
patch 3: /etc/cron.daily/sysklogd
--- /etc/cron.daily/sysklogd.dpkg-dist Thu Apr 26 12:38:52 2001
+++ /etc/cron.daily/sysklogd Wed Jul 11 18:51:46 2001
@@ -2,34 +2,46 @@
# sysklogd Cron script to rotate system log files daily.
#
-# If you want to rotate other logfiles daily, edit
-# this script. An easy way is to add them manually
-# or to add -a to syslogd-listfiles and add some grep
-# stuff.
+# If you want to rotate logfiles daily, edit
+# /etc/default/sysklogd and add the line:
#
-# This is a configration file. You are invited to edit
-# it and maintain it on your own. You'll have to do
-# that if you don't like the default policy
-# wrt. rotating logfiles (i.e. with large logfiles
-# weekly and daily rotation may interfere). If you edit
-# this file and don't let dpkg upgrade it, you have full
-# control over it. Please read the manpage to
-# syslogd-listfiles.
+# DAILY=true
+#
+# You no longer need to edit this file just because you
+# don't like the default policy for rotating large log
+# files, or want to add stuff to the syslogd-listfiles
+# command line. Instead, edit /etc/default/sysklogd and
+# add the line:
+#
+# S_OPTS="--ignore-size"
+#
+# Anything you set S_OPTS to will be added to the
+# command line which executes syslogd-listfiles.
+#
+# Please read the manpage to syslogd-listfiles for details.
#
# Written by Martin Schulze <[email protected]>.
+# config file feature added by Craig Sanders <[email protected]>
# $Id: cron.daily,v 1.4 2001/03/11 23:00:53 joey Exp $
test -x /usr/sbin/syslogd-listfiles || exit 0
+test -e /etc/default/sysklogd && . /etc/default/sysklogd
+
+test "$DAILY" = "true" && S_OPTS = "$S_OPTS -a"
+
+# if D_CYCLE is not defined in /etc/default/sysklogd then
+# default to 7.
+test -z "$D_CYCLE" && D_CYCLE=4
cd /var/log
-for LOG in `syslogd-listfiles`
+for LOG in `syslogd-listfiles $S_OPTS`
do
if [ -s $LOG ]; then
- savelog -g adm -m 640 -u root -c 7 $LOG >/dev/null
+ savelog -g adm -m 640 -u root -c $D_CYCLE $LOG >/dev/null
fi
done
-for LOG in `syslogd-listfiles --auth`
+for LOG in `syslogd-listfiles --auth $S_OPTS`
do
if [ -s $LOG ]; then
chown root.adm $LOG
--
craig sanders <[email protected]>
Fabricati Diem, PVNC.
-- motto of the Ankh-Morpork City Watch
--- End Message ---
--- Begin Message ---
Version: 1.5-6.2+rm
Dear submitter,
as the package sysklogd has just been removed from the Debian archive
unstable we hereby close the associated bug reports. We are sorry
that we couldn't deal with your issue properly.
For details on the removal, please see http://bugs.debian.org/707655
The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.
This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
[email protected].
Debian distribution maintenance software
pp.
Ansgar Burchardt (the ftpmaster behind the curtain)
--- End Message ---