From 16527935b1578db1fa478a6ca7edd882c9c87d1d Mon Sep 17 00:00:00 2001 From: Petr Bokoc Date: Oct 25 2018 11:44:46 +0000 Subject: Merge #18 `Issue 8 - explain that anacron doesn't run on battery power` --- diff --git a/modules/system-administrators-guide/pages/monitoring-and-automation/Automating_System_Tasks.adoc b/modules/system-administrators-guide/pages/monitoring-and-automation/Automating_System_Tasks.adoc index 00df526..775f74b 100644 --- a/modules/system-administrators-guide/pages/monitoring-and-automation/Automating_System_Tasks.adoc +++ b/modules/system-administrators-guide/pages/monitoring-and-automation/Automating_System_Tasks.adoc @@ -18,11 +18,11 @@ Every utility is intended for scheduling a different job type: while Cron and An [[s1-autotasks-cron-anacron]] == Cron and Anacron indexterm:[anacron]indexterm:[cron] -Both Cron and Anacron are daemons that can schedule execution of recurring tasks to a certain point in time defined by the exact time, day of the month, month, day of the week, and week. +Both Cron and Anacron can schedule execution of recurring tasks to a certain point in time defined by the exact time, day of the month, month, day of the week, and week. Cron jobs can run as often as every minute. However, the utility assumes that the system is running continuously and if the system is not on at the time when a job is scheduled, the job is not executed. -On the other hand, Anacron remembers the scheduled jobs if the system is not running at the time when the job is scheduled. The job is then executed as soon as the system is up. However, Anacron can only run a job once a day. +On the other hand, Anacron remembers the scheduled jobs if the system is not running at the time when the job is scheduled. The job is then executed as soon as the system is up. However, Anacron can only run a job once a day. Also note that by default, Anacron only runs when your system is running on AC power and will not run if your system is being powered by a battery; this behavior is set up in the [filename]`/etc/cron.hourly/0anacron` script. [[sect-Cron-Installing]] === Installing Cron and Anacron