BSD Ports

sysutils/anacron 2.3_8 DragonFly

Schedules periodic jobs on systems that are not permanently up

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
GPLv2+
Categories
sysutils
Package size
20.6 KiB, 46.0 KiB installed

Description

Anacron is a periodic command scheduler. It executes commands at intervals specified in days. Unlike cron, it does not assume that the system is running continuously. It can therefore be used to control the execution of daily, weekly and monthly jobs (or anything with a period of n days), on systems that don't run 24 hours a day.

Anacron is not an attempt to make cron redundant.

Requirements

  • A functioning syslog daemon.
  • A functioning /usr/sbin/sendmail command. (all MTAs should have that).

In the other systems

SystemPortVersion
DragonFlysysutils/anacron2.3_8
FreeBSDsysutils/anacron2.3_8
OpenBSDsysutils/anacron2.5.3p5
NetBSDtime/anacron2.3nb3

Install

Binary package:

pkg install anacron

From DPorts:

cd /usr/dports/sysutils/anacron && make install clean

Dependencies

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Message after installing

Configuration hints:
- Edit /usr/local/etc/anacrontab
- Deactivate the 'periodic' commands in /etc/crontab
- Add a call to anacron to /etc/crontab, like
  0  0  *  *  *    root    /usr/local/sbin/anacron
- Add anacron_enable="YES" to /etc/rc.conf
  or execute one of the following commands as root:
    service anacron enable
    sysrc anacron_enable=YES
- Read anacron(8) and anacrontab(5)
- To avoid overlapping periodic(8) jobs, you may want to serialize jobs:
    sysrc anacron_flags+=" -s"