Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jul 1999 10:34:49 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Sue Blake <sue@welearn.com.au>
Cc:        FreeBSD Hackers <hackers@freebsd.org>
Subject:   Re: adding to periodic/weekly
Message-ID:  <19990728103449.I66861@freebie.lemis.com>
In-Reply-To: <19990728030422.I7349@welearn.com.au>; from Sue Blake on Wed, Jul 28, 1999 at 03:04:25AM %2B1000
References:  <19990728030422.I7349@welearn.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday, 28 July 1999 at  3:04:25 +1000, Sue Blake wrote:
> I want to add some maintenance tasks to be run weekly (maybe daily ones too).
> There seem to be at least five ways to do this:
>
> Just add it to the system crontab
>  - Can run at a different time, if necessary. Leaves periodic unmolested.
>  - Separates it from other weeklies, could become lost or confusing.
> Add it to /etc/periodic/weekly/999.local
>  - This might be what the file is intended for.
>  - Maybe I shouldn't clutter that file.
> Create /etc/weekly.local and put it in there
>  - It's tempting because 999.local picks it up if present.
>  - Comment says this is only for backward compatibility.
> Add another file /etc/periodic/weekly/<high number>.whatever
>  - Can keep it away from existing sequence, or insert if necessary
>  - Future upgrades might add files using the numbers I choose
> Put it in a numbered file under /usr/local/etc/periodic/weekly/
>  - This seems to be what it's intended for, but nobody said I could
>  - Path is already in rc.conf but doesn't exist, not sure why not used
>  - Can't find doc on its use, e.g. run in path order? unique numbers required?
>
> Which method is generally best, and why?
> Are any of these methods really naughty?

Interesting question.  I don't have any personal preferences, though I
put my stuff in /etc/crontab or my private crontab out of habit.  But
this is probably material for -hackers, so I'm forwarding it there.

Greg
--
When replying to this message, please copy the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address, home page and phone numbers
finger grog@lemis.com for PGP public key


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?19990728103449.I66861>