From owner-freebsd-questions Tue Jul 27 18: 8:46 1999 Delivered-To: freebsd-questions@freebsd.org Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (Postfix) with ESMTP id AAFF714CA4; Tue, 27 Jul 1999 18:07:01 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id KAA25402; Wed, 28 Jul 1999 10:34:50 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id KAA67327; Wed, 28 Jul 1999 10:34:49 +0930 (CST) Date: Wed, 28 Jul 1999 10:34:49 +0930 From: Greg Lehey To: Sue Blake Cc: FreeBSD Hackers Subject: Re: adding to periodic/weekly Message-ID: <19990728103449.I66861@freebie.lemis.com> References: <19990728030422.I7349@welearn.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <19990728030422.I7349@welearn.com.au>; from Sue Blake on Wed, Jul 28, 1999 at 03:04:25AM +1000 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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/.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