Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Mar 2002 13:23:42 +0000
From:      Mark Drayton <mark.drayton@izrsolutions.com>
To:        D J Hawkey Jr <hawkeyd@visi.com>
Cc:        questions at FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: Q: Setting up local periodic scripts
Message-ID:  <20020305132342.A6802@drex.staff.izr.com>
In-Reply-To: <20020305071953.A58277@sheol.localdomain>; from hawkeyd@visi.com on Tue, Mar 05, 2002 at 07:19:53AM -0600
References:  <20020305071953.A58277@sheol.localdomain>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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