From owner-freebsd-questions Tue Mar 5 5:23:50 2002 Delivered-To: freebsd-questions@freebsd.org Received: from kirk.izrsolutions.com (kirk.izrsolutions.com [195.26.33.2]) by hub.freebsd.org (Postfix) with ESMTP id 4A77037B402 for ; Tue, 5 Mar 2002 05:23:45 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by kirk.izrsolutions.com (Postfix) with ESMTP id 056321E479; Tue, 5 Mar 2002 13:23:44 +0000 (GMT) Received: from drex.staff.izr.com (drex.staff.izr.com [195.26.33.16]) by kirk.izrsolutions.com (Postfix) with ESMTP id E1F771E45D; Tue, 5 Mar 2002 13:23:42 +0000 (GMT) Received: by drex.staff.izr.com (Postfix, from userid 1001) id 95B4633791; Tue, 5 Mar 2002 13:23:42 +0000 (GMT) Date: Tue, 5 Mar 2002 13:23:42 +0000 From: Mark Drayton To: D J Hawkey Jr Cc: questions at FreeBSD Subject: Re: Q: Setting up local periodic scripts Message-ID: <20020305132342.A6802@drex.staff.izr.com> Mail-Followup-To: D J Hawkey Jr , questions at FreeBSD References: <20020305071953.A58277@sheol.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020305071953.A58277@sheol.localdomain>; from hawkeyd@visi.com on Tue, Mar 05, 2002 at 07:19:53AM -0600 X-Virus-Scanned: by AMaViS snapshot-20010714 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi D J Hawkey Jr (hawkeyd@visi.com) wrote: > After reading the 'periodic' man page (several times), as well as > /etc/defaults/periodic.conf and /etc/crontab, I'm still fuzzy about > setting up "local" periodic scripts. > > I've modified 100.clean-disks and 110.clean-tmps to do things more to > my liking (see PR 35545), and wish to put them in > /usr/local/etc/periodic and have them run from there _instead_of_ > replacing the system scripts in /etc/periodic. > > Is it as simple as what I infer, that I just move them to that local > directory, do _not_ enable the system equivalents in > /etc/periodic.conf (though I must set the pertinent script variables > in that file), and 'periodic' blindly runs whatever it finds in that > "local" directory, rather like how the boot process blindly runs > whatever is found in /usr/local/etc/rc.d? You need to make /usr/local/etc/periodic/{daily,weekly,monthly}: === mark@drex:~$ ls -l /usr/local/etc/periodic/ total 1 drwxr-xr-x 2 root wheel 512 Jul 5 2001 daily === mark@drex:~$ ls -l /usr/local/etc/periodic/daily/ total 1 -rwxr-xr-x 1 root wheel 277 Jul 5 2001 100.locate Aside from this detail you're absolutely correct. Cheers, -- Mark Drayton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message