From owner-freebsd-alpha@FreeBSD.ORG Mon May 3 14:40:20 2010 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 932F4106564A; Mon, 3 May 2010 14:40:20 +0000 (UTC) (envelope-from john@baldwin.cx) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 67F638FC25; Mon, 3 May 2010 14:40:20 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 0B9C546B64; Mon, 3 May 2010 10:40:20 -0400 (EDT) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPA id 2E9D78A01F; Mon, 3 May 2010 10:40:19 -0400 (EDT) From: John Baldwin To: freebsd-alpha@freebsd.org Date: Mon, 3 May 2010 10:03:18 -0400 User-Agent: KMail/1.12.1 (FreeBSD/7.3-CBSD-20100217; KDE/4.3.1; amd64; ; ) References: <201005022124.o42LOELg058186@www.freebsd.org> In-Reply-To: <201005022124.o42LOELg058186@www.freebsd.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201005031003.18459.john@baldwin.cx> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Mon, 03 May 2010 10:40:19 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=4.2 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: "Paweł Kaczor" , freebsd-gnats-submit@freebsd.org 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 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:40:20 -0000 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