User Controlled anacron
- author
-
akeil
- date
-
2013-11-23
- version
-
1
In Linux, cron-jobs can be used to execute commands or scripts
on a regular schedule.
Jobs and their execution times or intervals are specified in a crontab
and executed by a cron daemon.
When the scheduled execution time is reached, crond
will run the job.
This works well in a situation where the machine is up most or all of the time.
It works not so well on a typical desktop or laptop PC
because cron will not "catch up" on jobs that were missed while the computer
was not running.
anacron allows to specify that a job is run at a given interval
specified in days (or weeks/months).
It does not assume that the system is up 24 hours a day
and will run jobs as close as possible to the specified time
whenever the system is up.
By default anacron runs system-wide and jobs are executed with the root user.
Also, only root
has write permissions on /etc/anacrontab
or on the /etc/cron.xxx
directories.
We will make anacron
easily available to a non-root user
and - more important - run the scheduled jobs without root privileges.
Read more…