From owner-freebsd-alpha@FreeBSD.ORG Mon May 3 14:50:08 2010 Return-Path: Delivered-To: freebsd-alpha@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BC1D2106566B for ; Mon, 3 May 2010 14:50:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 8E27D8FC14 for ; Mon, 3 May 2010 14:50:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o43Eo8YS027595 for ; Mon, 3 May 2010 14:50:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o43Eo8ps027594; Mon, 3 May 2010 14:50:08 GMT (envelope-from gnats) Date: Mon, 3 May 2010 14:50:08 GMT Message-Id: <201005031450.o43Eo8ps027594@freefall.freebsd.org> To: freebsd-alpha@FreeBSD.org From: John Baldwin Cc: Subject: Re: alpha/146255: periodic emits repeated messages because of /usr/X11R6 link to /usr/local X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John Baldwin List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 May 2010 14:50:08 -0000 The following reply was made to PR alpha/146255; it has been noted by GNATS. From: John Baldwin To: freebsd-alpha@freebsd.org Cc: "Paweł Kaczor" , freebsd-gnats-submit@freebsd.org Subject: Re: alpha/146255: periodic emits repeated messages because of /usr/X11R6 link to /usr/local Date: Mon, 3 May 2010 10:03:18 -0400 On Sunday 02 May 2010 5:24:14 pm Paweł Kaczor wrote: > > >Number: 146255 > >Category: alpha > >Synopsis: periodic emits repeated messages because of /usr/X11R6 link to /usr/local > >Confidential: no > >Severity: non-critical > >Priority: low > >Responsible: freebsd-alpha > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Sun May 02 21:30:04 UTC 2010 > >Closed-Date: > >Last-Modified: > >Originator: Paweł Kaczor > >Release: 6.3-RELEASE > >Organization: > IT Gens Sp. z o.o. > >Environment: > FreeBSD gustlik.fubar.pl 6.3-RELEASE FreeBSD 6.3-RELEASE #0: Fri Feb 15 13:29:20 CET 2008 root@berta.swired2:/usr/obj/usr/src/sys/MYKERNEL alpha > >Description: > There's a line in /etc/defaults/periodic.conf: > local_periodic="/usr/local/etc/periodic /usr/X11R6/etc/periodic" > with additional dirs that periodic should look in for scripts. > But /usr/X11R6 is soft link to /usr/local, so both paths listed above are same, so periodic runs the very same scripts twice. > I noticed it on my Alpha machine on FreeBSD 6.3, don't know if those paths are from the setup time or some of the packages installed them. > >How-To-Repeat: > Put some simple script with this line inside: > echo "This message is repeated!" > in /usr/local/etc/periodic/security > and run: > periodic security > You should see the message twice. > >Fix: > Replace line: > local_periodic="/usr/local/etc/periodic /usr/X11R6/etc/periodic" > with: > local_periodic="/usr/local/etc/periodic" > in "/etc/defaults/periodic.conf". This isn't likely to be fixed in 6.x as that branch is EOL at this point. -- John Baldwin