#18 Issue 8 - explain that anacron doesn't run on battery power
Merged 3 years ago by pbokoc. Opened 3 years ago by pbokoc.
fedora-docs/ pbokoc/system-administrators-guide iss8  into  master

@@ -18,11 +18,11 @@ 

  [[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

This PR removes the bit about anacron and cron being both daemons (it doesn't really matter anyway). It also expands the paragraph that describes anacron with a note that it won't run on battery power by default.

Fixes #8

Pull-Request has been merged by pbokoc

3 years ago