Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 May 2002 23:07:51 -0500
From:      "Brandon D.Valentine" <bugs@geekpunk.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        bugs@geekpunk.net
Subject:   bin/38558: newsyslog disobeys -F flag
Message-ID:  <E17BpJv-0006uo-00@mail.michaelchaney.com>

next in thread | raw e-mail | index | archive | help

>Number:         38558
>Category:       bin
>Synopsis:       newsyslog disobeys -F flag
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 25 21:10:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Brandon D. Valentine
>Release:        FreeBSD 4.5-RELEASE-p2 i386
>Organization:
N/A
>Environment:
System: FreeBSD leto 4.5-RELEASE-p2 FreeBSD 4.5-RELEASE-p2 #1: Fri Apr 26 01:50:45 CDT 2002 root@leto:/export/obj/export/src/sys/LETO_DEBUG i386


>Description:
/usr/sbin/newsyslog fails to obey the -F flag to force log trimming.  According
to newsyslog(8):

-F      Force newsyslog to trim the logs, even if the trim conditions
have not been met.  This option is useful for diagnosing system problems
by providing you with fresh logs that contain only the problems.
>How-To-Repeat:
[bandix@leto ~]% cat .newsyslog.conf 
# configuration file for newsyslog
#
# logfilename          [owner:group]    mode count size when [ZJB]
# [/pid_file] [sig_num]
/home/bandix/mail/caught-spam                   644  6          *
$W5D23Z
[bandix@leto ~]% newsyslog -Frv -f $HOME/.newsyslog.conf -a
../mail-archive/ $HOME/mail/caught-spam
/home/bandix/mail/caught-spam <6Z>: --> will trim at Fri May 31 23:00:00
2002
>Fix:

The workaround is to manually edit newsyslog.conf and make the file you
wish you rotate immediately up for rotation.  This is an undesirable
solution.  The -F flag should be available for adminstrators and
developers' debugging needs.
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E17BpJv-0006uo-00>