openbsd-ports/sysutils/anacron/pkg
2012-11-20 15:25:18 +00:00
..
anacron.rc Add an rcscript and move MESSAGE to README 2012-11-20 15:14:41 +00:00
DESCR
PLIST Add an rcscript and move MESSAGE to README 2012-11-20 15:14:41 +00:00
README Use proper template for the README. 2012-11-20 15:25:18 +00:00

$OpenBSD: README,v 1.2 2012/11/20 15:25:18 ajacoutot Exp $

+-----------------------------------------------------------------------
| Running ${FULLPKGNAME} on OpenBSD
+-----------------------------------------------------------------------

To start using anacron:

Create the file ${SYSCONFDIR}/anacrontab (see anacrontab(5) for
information about its format).

The following is a simple example which runs the standard
OpenBSD daily, weekly, and monthly scripts:

-----Cut
# ${SYSCONFDIR}/anacrontab example
SHELL=/bin/sh
PATH=${PREFIX}/sbin:${PREFIX}/bin:/sbin:/bin:/usr/sbin:/usr/bin
# format: period delay job-identifier command
1  5  cron.daily   sh /etc/daily 2>&1   | tee /var/log/daily.out
7  10 cron.weekly  sh /etc/weekly 2>&1  | tee /var/log/weekly.out
30 15 cron.monthly sh /etc/monthly 2>&1 | tee /var/log/monthly.out
-----Cut

Comment out the invocation of these jobs in root's crontab.

If your machine is left running for more than 24h at a time, you
might also want to invoke anacron from an early morning cron job.