From owner-freebsd-questions@FreeBSD.ORG Tue Aug 5 22:01:12 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3619E1065676 for ; Tue, 5 Aug 2008 22:01:12 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: from mtumishi.cyberleo.net (mtumishi.cyberleo.net [69.72.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 10BC98FC18 for ; Tue, 5 Aug 2008 22:01:11 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: from [172.16.44.14] (adsl-71-155-238-206.dsl.emhril.sbcglobal.net [71.155.238.206]) by mtumishi.cyberleo.net (Postfix) with ESMTPSA id EE123117EC; Tue, 5 Aug 2008 18:01:09 -0400 (EDT) Message-ID: <4898CDA3.9010405@cyberleo.net> Date: Tue, 05 Aug 2008 17:01:07 -0500 From: CyberLeo Kitsana User-Agent: Thunderbird 2.0.0.16 (X11/20080726) MIME-Version: 1.0 To: RW References: <489748B0.8050708@cyberleo.net> <20080804220134.339cb529@gumby.homeunix.com.> <48982052.8030801@cyberleo.net> In-Reply-To: <48982052.8030801@cyberleo.net> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: [Solved] Re: Periodic scripts running twice X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Aug 2008 22:01:12 -0000 CyberLeo Kitsana wrote: > RW wrote: >> On Mon, 04 Aug 2008 13:21:36 -0500 >> CyberLeo Kitsana wrote: >> >>> Hi! >>> >>> For a while, I've noticed odd behavior with periodic scripts >>> installed by certain ports (portaudit) as well as ones I've penned >>> myself (corescan), in that they appear to be run twice in succession >>> every time. >>> >>> Base system scripts, and some add-on scripts (freshclam) are run only >>> once, even in the same periodic batch. >>> >>> Is there some end state the script is expected to be in to signal >>> periodic of a successful run? >>> >>> (Incl: Sample email, weekly.txt) >>> >>> Thanks! >> >> Is this a long-standing problem? It sounds like you >> didn't fully complete the UPDATING instruction for the 20070519 xorg >> update, and /usr/local/etc/periodic is being access both directly >> and via the /usr/X11R6 symlink. > > >> Try adding local_periodic="/usr/local/etc/periodic" >> to /etc/periodic.conf > > The box in question doesn't even have X, as it's a headless server in a > colo someplace. It's been this way since I installed the periodic > scripts. I have no idea what that symlink is even doing there, unless > 'make distdirs distribution' creates it now. > > Either way, I've added the local_periodic directive to > /etc/periodic.conf. We'll see what happens when periodic runs tonight. > Thanks! Looks like that took care of the problem. Thanks for the insight! Although, that does cause me to wonder why only some of the local periodic scripts would run twice, while others would run only once. Either way, problem solved. -- Fuzzy love, -CyberLeo Technical Administrator CyberLeo.Net Webhosting http://www.CyberLeo.Net Furry Peace! - http://wwww.fur.com/peace/