Question about ports adding cronjobs

Robert Huff roberthuff at rcn.com
Tue Jun 17 23:29:18 UTC 2008


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 <your preferred time here> 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



More information about the freebsd-ports mailing list