README 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. $OpenBSD: README,v 1.4 2017/03/29 13:17:38 giovanni Exp $
  2. +-----------------------------------------------------------------------
  3. | Running ${FULLPKGNAME} on OpenBSD
  4. +-----------------------------------------------------------------------
  5. To start using anacron:
  6. Create the file ${SYSCONFDIR}/anacrontab (see anacrontab(5) for
  7. information about its format).
  8. The following is a simple example which runs the standard
  9. OpenBSD daily, weekly, and monthly scripts:
  10. -----Cut
  11. # ${SYSCONFDIR}/anacrontab example
  12. SHELL=/bin/sh
  13. PATH=/sbin:/bin:/usr/sbin:/usr/bin
  14. HOME=/var/log
  15. # format: period delay job-identifier command
  16. 1 5 cron.daily /bin/sh /etc/daily
  17. 7 10 cron.weekly /bin/sh /etc/weekly
  18. 30 15 cron.monthly /bin/sh /etc/monthly
  19. -----Cut
  20. Comment out the invocation of the corresponding jobs in root's crontab.
  21. If your machine is left running for more than 24h at a time, you
  22. might also want to invoke anacron from an early morning cron job.
  23. To run anacron(8) at boot time, add the following to root's crontab(5):
  24. @reboot ${PREFIX}/sbin/anacron -ds