Skip to content

Enable cron scheduler

github-actions[bot] edited this page Apr 27, 2026 · 3 revisions

User tools & setup > Enable cron scheduler

cron/cronie overview

cron is a scheduling daemon that allows the system to automatically run programs and other jobs on a set schedule.

cronie is an implementation of cron used in Arch systems.

Notably, cronie is essential for setting up automatic system backups through timeshift. This ensures the system automatically creates snapshots on system boot, every hour, etc. at user-defined frequencies.

Install cronie

  1. To install cronie, enter:

    sudo pacman -S cronie
  2. cronie must be manually enabled, as it comes disabled by default:

    sudo systemctl enable cronie.service
  3. Open the timeshift application to set up when the system should automatically create a snapshot.

Once scheduled snapshots are configured in timeshift, cronie will run regular jobs to automatically generate snapshots.

Disable cronie

Warning

Make sure that system daemons are inactive before disabling them.

daemons such as cronie are needed for essential services. Forcibly disabling them while they are still active (and possibly running jobs) may cause the system to become unstable.

  1. First, stop the cronie process with:

    $ systemctl stop cronie.service
  2. Check that the process is inactive by running:

    $ systemctl status cronie.service
Terminal output with active process:
cronie.service - Command Scheduler
Loaded: loaded (/usr/lib/systemd/system/cronie.service; enabled; preset: disabled)
Active: active (running) since Day YYYY-MM-DD HH:MM:SS -timezone; 00h 00min ago
...

  1. After verifying that cronie is inactive, enter:
     $ systemctl disable cronie.service

cron versus cronie

cron has several implementations with variations in scheduling and job management.

cronie comes with the anacron utility enabled by default, which will run backlogged jobs for systems not continuously running (ex. personal computers).

Note

See: anacron manpage

Clone this wiki locally