From owner-freebsd-questions Tue Jul 27 10: 2:28 1999 Delivered-To: freebsd-questions@freebsd.org Received: from phoenix.welearn.com.au (phoenix.welearn.com.au [139.130.44.81]) by hub.freebsd.org (Postfix) with ESMTP id 71FFA151F1 for ; Tue, 27 Jul 1999 10:02:21 -0700 (PDT) (envelope-from sue@phoenix.welearn.com.au) Received: (from sue@localhost) by phoenix.welearn.com.au (8.9.3/8.9.3) id DAA30306 for freebsd-questions@freebsd.org; Wed, 28 Jul 1999 03:04:27 +1000 (EST) (envelope-from sue) Date: Wed, 28 Jul 1999 03:04:25 +1000 From: Sue Blake To: freebsd-questions@freebsd.org Subject: adding to periodic/weekly Message-ID: <19990728030422.I7349@welearn.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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? -- Regards, -*Sue*- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message