Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 May 2010 10:03:18 -0400
From:      John Baldwin <john@baldwin.cx>
To:        freebsd-alpha@freebsd.org
Cc:        "Pawe&#322; Kaczor" <paczor@fubar.pl>, freebsd-gnats-submit@freebsd.org
Subject:   Re: alpha/146255: periodic emits repeated messages because of /usr/X11R6 link to /usr/local
Message-ID:  <201005031003.18459.john@baldwin.cx>
In-Reply-To: <201005022124.o42LOELg058186@www.freebsd.org>
References:  <201005022124.o42LOELg058186@www.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday 02 May 2010 5:24:14 pm Pawe&#322; 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&#322; 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005031003.18459.john>