Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jun 1998 14:17:57 -0400 (EDT)
From:      Mikhail Teterin <mi@video-collage.com>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/7033: newsyslog's new option
Message-ID:  <199806231817.OAA20948@xxx.video-collage.com>

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

>Number:         7033
>Category:       bin
>Synopsis:       Same process notified multiple times
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 23 11:20:01 PDT 1998
>Last-Modified:
>Originator:     Mikhail Teterin
>Organization:
Virtual Estates, Inc.
>Release:        FreeBSD 3.0-CURRENT
>Environment:

>Description:

	After finishing rotating the logs, newsyslog duly notifies the
	processes involved. The last (optional) argument on the line
	specifies the file the process-id of the process to be notified.
	If the same process is concerned about several files, it gets
	notified several times:

Jun 23 14:04:53 xxx squid[318]: Restarting Squid Cache (version 1.1.8)... 
Jun 23 14:04:54 xxx squid[318]: Ready to serve requests. 
Jun 23 14:05:03 xxx squid[318]: Restarting Squid Cache (version 1.1.8)... 
Jun 23 14:05:04 xxx squid[318]: Ready to serve requests. 
Jun 23 14:05:13 xxx squid[318]: Restarting Squid Cache (version 1.1.8)... 
Jun 23 14:05:14 xxx squid[318]: Ready to serve requests. 


>How-To-Repeat:

Add this to your /etc/newsyslog.conf for example:
/var/log/squid.access.log		664  3	   *	168   Z	/var/run/squid.pid
/var/log/squid.cache.log		664  3	   *	168   Z	/var/run/squid.pid
/var/log/squid.store.log		664  3	   *	168   Z	/var/run/squid.pid

>Fix:
	
	Only list the file once is the almost working work-around. It fails
	if there are different conditions affect different files.

	Please, have in mind that the same process may happen to
	be listed in several files. So, the list of processes should
	first be "uniq"-ed...
>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?199806231817.OAA20948>