From owner-freebsd-alpha@FreeBSD.ORG Sun May 2 21:30:05 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 0EAF61065676 for ; Sun, 2 May 2010 21:30:05 +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 C80128FC18 for ; Sun, 2 May 2010 21:30:04 +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 o42LU4em096056 for ; Sun, 2 May 2010 21:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o42LU4m9096055; Sun, 2 May 2010 21:30:04 GMT (envelope-from gnats) Resent-Date: Sun, 2 May 2010 21:30:04 GMT Resent-Message-Id: <201005022130.o42LU4m9096055@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-alpha@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Paweł Kaczor" Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 274001065672 for ; Sun, 2 May 2010 21:24:16 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 165578FC12 for ; Sun, 2 May 2010 21:24:16 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o42LOE4B058187 for ; Sun, 2 May 2010 21:24:14 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o42LOELg058186; Sun, 2 May 2010 21:24:14 GMT (envelope-from nobody) Message-Id: <201005022124.o42LOELg058186@www.freebsd.org> Date: Sun, 2 May 2010 21:24:14 GMT From: "Paweł Kaczor" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: 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 List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 May 2010 21:30:05 -0000 >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". >Release-Note: >Audit-Trail: >Unformatted: