NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/40274: newsyslog(8)'s "P" flag stops rotating log files.
>Number: 40274
>Category: bin
>Synopsis: newsyslog(8)'s "P" flag stops rotating log files.
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Dec 26 02:15:00 +0000 2008
>Originator: Takahiro Kambe
>Release: NetBSD 5.0_BETA
>Organization:
>Environment:
System: NetBSD ns.back-street.net 5.0_BETA NetBSD 5.0_BETA (EPIA) #5: Sat Nov
29 22:27:13 JST 2008
taca%boy.a.back-street.net@localhost:/data/i386/obj5/sys/arch/i386/compile/EPIA
i386
Architecture: i386
Machine: i386
>Description:
When specifies "P" flags in /etc/newsyslog.conf, newsyslog(8) stops
rotating log files. (I've lost log files in several days.)
>How-To-Repeat:
Here is I checked.
# echo "/var/log/t 640 5 100 * ZPBC" >> /etc/newsyslog.conf
# dd if=/dev/zero of=/var/log/t count=5000
5000+0 records in
5000+0 records out
2560000 bytes transferred in 0.062 secs (41290322 bytes/sec)
# ls -l /var/log/t*
-rw-r--r-- 1 root wheel 2560000 Dec 26 11:07 /var/log/t
# newsyslog
# ls -l /var/log/t*
-rw-r----- 1 root wheel 0 Dec 26 11:08 /var/log/t
-rw-r--r-- 1 root wheel 2560000 Dec 26 11:07 /var/log/t.0
# dd if=/dev/zero of=/var/log/t count=5000
5000+0 records in
5000+0 records out
2560000 bytes transferred in 0.062 secs (41290322 bytes/sec)
# newsyslog
# ls -l /var/log/t*
-rw-r----- 1 root wheel 0 Dec 26 11:08 /var/log/t
-rw-r--r-- 1 root wheel 2560000 Dec 26 11:07 /var/log/t.0
Now, /var/log/t.1.gz should be exists but not.
>Fix:
Unknown, just looking for codes.
>Unformatted:
Home |
Main Index |
Thread Index |
Old Index