Apr 20, 2017

[HDGEM] anacron is a computer program that performs periodic command scheduling, which is traditionally done by cron, but without assuming that the system is running continuously.

sudo apt -y install anacron

Anacron makes sure that all the tasks listed in /etc/cron.hourly , /etc/cron.daily , /etc/cron.weekly and /etc/cron.monthly are performed, even if the PC is switched off when they'd normally happen. Overdue tasks are run when the computer is next turned on. On the good side, it never misses a task. On the bad side, if the tasks take a lot of time, your PC might seem a little slow when you first turn it on after a long time being turned off.

Add cron-apt to cron.daily

To make cron-apt be executed by Anacron, create a link in /etc/cron.daily or /etc/cron.weekly. For example:

sudo ln -s /usr/sbin/cron-apt /etc/cron.weekly/


--
Posted By Blogger to HDGEM at 4/20/2017 08:56:00 AM