Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jul 1999 03:04:25 +1000
From:      Sue Blake <sue@welearn.com.au>
To:        freebsd-questions@freebsd.org
Subject:   adding to periodic/weekly
Message-ID:  <19990728030422.I7349@welearn.com.au>

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

-- 

Regards,
        -*Sue*-
 
 


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?19990728030422.I7349>