BSD Ports

sysutils/anacron 2.3_8 FreeBSD

Schedules periodic jobs on systems that are not permanently up

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
GPLv2+
Categories
sysutils
Package size
22.3 KiB, 46.3 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
FreeBSDsysutils/anacron2.3_8
OpenBSDsysutils/anacron2.5.3p5
NetBSDtime/anacron2.3nb3
DragonFlysysutils/anacron2.3_8

Install

Binary package:

pkg install anacron

From the ports tree:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	anacron>0:sysutils/anacron

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.3_82.3_82.3_72.3_82.3_8
FreeBSD:14:quarterly2.3_82.3_8n/a2.3_82.3_8
FreeBSD:15:latest2.3_82.3_8n/a2.3_82.3_8
FreeBSD:15:quarterly2.3_82.3_8n/an/an/a
FreeBSD:16:latest2.3_82.3_8n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 3

No port depends on this one.

Configuration

No options to configure.

USES
gmake
Service scripts
anacron

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"

Files

Manual pages 1
  • tab(5)
pkg-plist 7
  • sbin/
  • @sample etc/tab.sample
  • @postexec mkdir -p /var/spool/ 2>/dev/null
  • @postunexec rmdir /var/spool/ 2>/dev/null || echo "If you are permanently removing this port, you should do a 'rm -rf /var/spool/'."
  • share/man/man8/.8.gz
  • share/man/man5/tab.5.gz
  • @dir /var/spool/
distinfo 1
FileSizeSHA256
anacron-2.3.tar.gz241405ceee6f22cd089bdaf1c0841200dbe5726babaf9e2c432bb17c1fc95da5ca99f
Master sites 1
  • SF

Commit history 0

No commits in the history this site was built from.