From owner-freebsd-isp@FreeBSD.ORG Wed Mar 26 21:08:24 2003 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6ED9637B404 for ; Wed, 26 Mar 2003 21:08:24 -0800 (PST) Received: from blue.gerhardt-it.com (gw.gerhardt-it.com [204.83.38.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id E77A143F93 for ; Wed, 26 Mar 2003 21:08:23 -0800 (PST) (envelope-from scott@g-it.ca) Received: from [24.71.178.119] (h24-71-178-119.ss.shawcable.net [24.71.178.119]) by blue.gerhardt-it.com (Postfix) with ESMTP id 9D05EFD96; Wed, 26 Mar 2003 23:08:22 -0600 (CST) User-Agent: Microsoft-Entourage/10.1.1.2418 Date: Wed, 26 Mar 2003 23:08:20 -0600 From: Scott Gerhardt To: Anti , Jez Hancock Message-ID: In-Reply-To: <20030326201958.6b163dcd.fearow@attbi.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Spam-Status: No, hits=-9.7 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REPLY_WITH_QUOTES,USER_AGENT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) cc: freebsd-isp@freebsd.org Subject: Re: Periodic Scripts X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Mar 2003 05:08:27 -0000 On 3/26/03 8:19 PM, "Anti" wrote: > On Wed, 26 Mar 2003 20:11:57 +0000 > Jez Hancock wrote: > >> On Wed, Mar 26, 2003 at 10:42:44AM -0600, Scott Gerhardt wrote: >>> My question is can I add a "periodic hourly" entry to crontab and create a >>> "/usr/local/etc/periodic/hourly" directory and put the hourly scripts in >>> this directory? Will they be executed? >> Create a directory: >> >> /etc/periodic/hourly/ >> >> populating it with scripts in a manner similar to /etc/periodic/daily et al, >> then add variables into your /etc/periodic.conf file for the daily scripts >> and call it from cron using: >> >> 1 * * * * root periodic hourly >> >> in /etc/crontab. >> >> >> man periodic seems to suggest you can do this: > > > better to keep custom scripts under /usr/local/etc imo... the default > periodic.conf checks these directories as well as the ones under /etc... Yes, I agree that it would be best to keep all the custom scripts under /usr/local/etc, that is what I have been doing so far. Thanks for all your great comments! -- Scott Gerhardt, P.Geo. Gerhardt Information Technologies [G-IT]