Date: Wed, 18 Jun 2008 11:49:22 +0200 From: Kris Kennaway <kris@FreeBSD.org> To: David Hawthorne <dhawth@bitgravity.com> Cc: freebsd-ports@freebsd.org Subject: Re: Question about ports adding cronjobs Message-ID: <4858DA22.70001@FreeBSD.org> In-Reply-To: <746214C8-3863-4B29-8B01-230579284C76@bitgravity.com> References: <746214C8-3863-4B29-8B01-230579284C76@bitgravity.com>
next in thread | previous in thread | raw e-mail | index | archive | help
David Hawthorne wrote: > I have a piece of software I've been working on that gathers stats about > the local host and shoves them into rrd files, with an accompanying web > front-end page that generates pretty graphs from the RRDs on demand. 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? It doesn't have to be as > root, either, it can run under a different user. Any advice on how to > get the port to add the user (and remove it properly when the port is > deinstalled) properly and securely would be appreciated as well. Don't do it automatically. Provide a script that allows users to do it if they want. Kris
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4858DA22.70001>