From owner-freebsd-questions Tue Jul 27 10:15: 9 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 73F9A151FC for ; Tue, 27 Jul 1999 10:15:04 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id MAA14546; Tue, 27 Jul 1999 12:14:49 -0500 (CDT) (envelope-from dan) Date: Tue, 27 Jul 1999 12:14:49 -0500 From: Dan Nelson To: Sue Blake Cc: freebsd-questions@FreeBSD.ORG Subject: Re: adding to periodic/weekly Message-ID: <19990727121449.A14372@dan.emsphone.com> References: <19990728030422.I7349@welearn.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <19990728030422.I7349@welearn.com.au>; from "Sue Blake" on Wed Jul 28 03:04:25 GMT 1999 X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Jul 28), Sue Blake said: > 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. > > 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? These are probably the best options. Option #1 is good for systems that already use /etc/crontab a lot; Option #2 is good if you want to be able to add/remove/modify your cron entry programmatically. Note that the periodic/* files will all fire around the same time (one after another). If you want something to fire every Wednesday, for example, you'll have to put it in a crontab. The numbers are simply execution order, lowest to highest. Duplicates are allowed; execution order if two entries have the same number is undefined. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message