On Thu, 01 Nov 2007, Jeremy Martin wrote: > The other part of my question is trying to set up a cron job. I tried adding > the job into debian/cron.d.ex and in the debian/rules file I uncommented > dh_installcron in the "binary-arch: build install" section, but the cron job > is not being added to /etc/crontab or to root's crontab (it needs to run as > root).
Mucking about with /etc/crontab should not be done by packages, since there's never any valid reason to do so.[1] If your script needs to be run daily as root (or a similar interval for which directories exist) put the script in /etc/cron.{daily,weekly,monthly,hourly}. If it needs to be run more often, then stick a crontab entry in /etc/cron.d. man cron; and see /etc/crontab; for details. Don Armstrong 1: Well, ignoring packages like cron and anacrontab, anyway. -- It has always been Debian's philosophy in the past to stick to what makes sense, regardless of what crack the rest of the universe is smoking. -- Andrew Suffield in [EMAIL PROTECTED] http://www.donarmstrong.com http://rzlab.ucr.edu -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]