conf/169973: [newsyslog.conf] add 'N' flag for sendmail.st

Mark Johnston markjdb at gmail.com
Wed Jul 18 14:00:02 UTC 2012


>Number:         169973
>Category:       conf
>Synopsis:       [newsyslog.conf] add 'N' flag for sendmail.st
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 18 14:00:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Mark Johnston
>Release:        CURRENT
>Organization:
Sandvine Inc.
>Environment:
FreeBSD oddish 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r237931+09aeb19-dirty: Sun Jul  1 13:10:47 EDT 2012     mark at oddish:/home/mark/src/obj/usr/home/mark/src/freebsd/sys/GENERIC  amd64
>Description:
The newsyslog.conf entry for /var/log/sendmail.st should use the 'N' flag. The only process that writes to /var/log/sendmail.st is sendmail itself, and it doesn't hold the file open: it just opens it as needed in the poststats() function.

In particular, syslogd shouldn't receive SIGHUP when sendmail.st is rotated.
>How-To-Repeat:

>Fix:
Add the 'N' flag to the sendmail.st entry in newsyslog.conf, as in the patch below.

Patch attached with submission follows:

diff --git a/etc/newsyslog.conf b/etc/newsyslog.conf
index 44aff12..e0154e3 100644
--- a/etc/newsyslog.conf
+++ b/etc/newsyslog.conf
@@ -33,7 +33,7 @@
 /var/log/pflog				600  3	   100	*     JB    /var/run/pflogd.pid
 /var/log/ppp.log	root:network	640  3	   100	*     JC
 /var/log/security			600  10	   100	*     JC
-/var/log/sendmail.st			640  10	   *	168   B
+/var/log/sendmail.st			640  10	   *	168   BN
 /var/log/utx.log			644  3	   *	@01T05 B
 /var/log/weekly.log			640  5	   1	$W6D0 JN
 /var/log/xferlog			600  7	   100	*     JC


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list