From owner-freebsd-ports@FreeBSD.ORG Tue Jun 17 23:33:40 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 6DFD71065676 for ; Tue, 17 Jun 2008 23:33:40 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from cpanel03.rubas-s03.net (cpanel03.rubas-s03.net [195.182.222.73]) by mx1.freebsd.org (Postfix) with ESMTP id 26B8B8FC1B for ; Tue, 17 Jun 2008 23:33:39 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from [213.142.183.219] (helo=gahrtop.localhost) by cpanel03.rubas-s03.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1K8kg9-0005z2-Rl; Wed, 18 Jun 2008 01:33:34 +0200 Message-ID: <485849C6.5040708@FreeBSD.org> Date: Wed, 18 Jun 2008 01:33:26 +0200 From: Pietro Cerutti Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.14 (X11/20080610) MIME-Version: 1.0 To: Robert Huff References: <746214C8-3863-4B29-8B01-230579284C76@bitgravity.com> <4858428A.80502@FreeBSD.org> <18520.18635.747302.473408@jerusalem.litteratus.org> In-Reply-To: <18520.18635.747302.473408@jerusalem.litteratus.org> X-Enigmail-Version: 0.95.6 OpenPGP: id=9571F78E; url=http://gahr.ch/pgp/ Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel03.rubas-s03.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - FreeBSD.org X-Source: X-Source-Args: X-Source-Dir: Cc: David Hawthorne , freebsd-ports@freebsd.org 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:33:40 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Robert Huff wrote: | 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. I didn't meant "you add the cronjob and inform the user", but instead "you inform the user how he can setup the cronjob, if he wants so". Anyway, I agree with you. | | | Robert Huff | - -- Pietro Cerutti gahr@FreeBSD.org PGP Public Key: http://gahr.ch/pgp -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEAREKAAYFAkhYScUACgkQwMJqmJVx947oOgCfSSezN97mpCgvAxhFyKCsRbBj j64AoLYgmZvSz+SNtOmpB4dZPOusmvxY =kT9k -----END PGP SIGNATURE-----