Received: (at submit) by bugs.debian.org; 7 Jul 1997 21:09:05 +0000 Received: (qmail 28748 invoked from network); 7 Jul 1997 21:09:04 -0000 Received: from cartridge.i-connect.net (qmailr@206.190.143.12) by master.debian.org with SMTP; 7 Jul 1997 21:09:04 -0000 Received: (qmail 5823 invoked from network); 7 Jul 1997 21:09:07 -0000 Received: from tiamat.datasync.com (srivasta@205.216.83.252) by cartridge.i-connect.net with SMTP; 7 Jul 1997 21:09:03 -0000 Received: (from srivasta@localhost) by tiamat.datasync.com (8.8.5/8.8.5) id QAA12585; Mon, 7 Jul 1997 16:02:45 -0500 X-Time: Mon Jul 7 16:02:37 1997 X-Mail-System: Vm 6.32 for GNU Emacs 19.34.1 Organization: Manoj Srivastava's Home To: submit@bugs.debian.org Subject: mgetty: savelog error Mime-Version: 1.0 (generated by tm-edit 7.106) Content-Type: text/plain; charset=US-ASCII From: Manoj Srivastava <srivasta@datasync.com> Date: 07 Jul 1997 16:02:44 -0500 Message-ID: <877mf2a83v.fsf@tiamat.datasync.com> Lines: 68 X-Mailer: Gnus v5.4.62/Emacs 19.34 Package: mgetty Version: 1.1.7-3 Hi, I had 1.776 Million!! rotated savelog files since the cron.daily script in mgetty rotates even the older rotated savelog files, resulting in an ever increasing number of files!! The script should loop over mg_ttyS?.log; like so: #!/bin/sh cd /var/log/mgetty for LOG in mg_ttyS?.log; do if [ -f $LOG ]; then savelog -g adm -m 644 -u root -c 7 $LOG >/dev/null fi done manoj __> cat /etc/cron.daily/mgetty #!/bin/sh cd /var/log/mgetty for LOG in *; do if [ -f $LOG ]; then savelog -g adm -m 644 -u root -c 7 $LOG >/dev/null fi done __> l /var/adm/mgetty/ total 1800 1781 ./ 0 mg_ttyS0.log.1.gz 0 mg_ttyS0.log.4.gz 4 ../ 0 mg_ttyS0.log.2.gz 0 mg_ttyS0.log.5.gz 15 mg_ttyS0.log 0 mg_ttyS0.log.3.gz 0 mg_ttyS0.log.6.gz -- System Information Debian Release: 1.3 Kernel Version: Linux tiamat 2.0.30 #1 Wed Jun 25 02:15:20 CDT 1997 i486 unknown Versions of the packages mgetty depends on: libc6 Version: 2.0.4-1 --- Begin /etc/mgetty/login.config (modified conffile) Config file not present or no permissions for access --- End /etc/mgetty/login.config --- Begin /etc/mgetty/dialin.config (modified conffile) Config file not present or no permissions for access --- End /etc/mgetty/dialin.config --- Begin /etc/mgetty/sendfax.config (modified conffile) Config file not present or no permissions for access --- End /etc/mgetty/sendfax.config --- Begin /etc/mgetty/mgetty.config (modified conffile) Config file not present or no permissions for access --- End /etc/mgetty/mgetty.config -- Manoj Srivastava <url:mailto:srivasta@acm.org> Mobile, Alabama USA <url:http://www.datasync.com/%7Esrivasta/>