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 g...@lemis.com for PGP public key


To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to