From owner-freebsd-ports@FreeBSD.ORG Tue Jun 17 23:29:18 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8E399106566B for ; Tue, 17 Jun 2008 23:29:18 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by mx1.freebsd.org (Postfix) with ESMTP id E98B88FC0A for ; Tue, 17 Jun 2008 23:29:17 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from mr08.lnh.mail.rcn.net ([207.172.157.28]) by smtp02.lnh.mail.rcn.net with ESMTP; 17 Jun 2008 19:29:17 -0400 Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr08.lnh.mail.rcn.net (MOS 3.8.6-GA) with ESMTP id KAM91917; Tue, 17 Jun 2008 19:29:16 -0400 (EDT) Received: from 209-6-22-188.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com (HELO jerusalem.litteratus.org.litteratus.org) ([209.6.22.188]) by smtp01.lnh.mail.rcn.net with ESMTP; 17 Jun 2008 19:29:16 -0400 From: Robert Huff MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18520.18635.747302.473408@jerusalem.litteratus.org> Date: Tue, 17 Jun 2008 19:29:15 -0400 To: David Hawthorne , freebsd-ports@freebsd.org In-Reply-To: <4858428A.80502@FreeBSD.org> References: <746214C8-3863-4B29-8B01-230579284C76@bitgravity.com> <4858428A.80502@FreeBSD.org> X-Mailer: VM 7.17 under 21.5 (beta28) "fuki" XEmacs Lucid X-Junkmail-Whitelist: YES (by domain whitelist at mr08.lnh.mail.rcn.net) Cc: Subject: Re: Question about ports adding cronjobs X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jun 2008 23:29:18 -0000 Pietro Cerutti writes: > | I > | have a package done up for it, and I'd like to add it to the ports tree > | eventually, but I'm stuck on how to get it to automagically add the > | cronjob to have the stats gathering script run every five minutes, and I > | don't know of any ports that add cronjobs off the top of my head to go > | look at. > | > | Is there an approved standard for doing this? > > Another option would be to create a support script/daemon and > place it in rc.d. The script/daemon would then sit idle and wake > up once every and gather your > statistics. > > Third option: instruct the user (via a message at post-install > stage) on how to setup the cron job. I would _much_ prefer either of these. The idea of adding a cron job - even if there's a message displayed at the end of installation - makes me nervous. Robert Huff