Linuxhotel Wiki

Wie ging das nochmal?

Benutzer-Werkzeuge

Webseiten-Werkzeuge


lpi1:anacron

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen gezeigt.

Link zu der Vergleichsansicht

Nächste Überarbeitung
Vorherige Überarbeitung
Letzte Überarbeitung Beide Seiten, nächste Überarbeitung
lpi1:anacron [2015/08/18 07:24]
ingo_wichmann angelegt
lpi1:anacron [2015/08/18 07:44]
ingo_wichmann
Zeile 1: Zeile 1:
-  anacron -f     ​Forces execution of all jobs, ignoring any timestamps. 
-  anacron -T     ​Anacrontab testing. Tests the /​etc/​anacrontab configuration file for validity. 
  
 ''/​etc/​anacrontab''​ : ''/​etc/​anacrontab''​ :
 <​file>​ <​file>​
-       # environment variables +... 
-       SHELL=/​bin/​sh +RANDOM_DELAY=10 
-       ​PATH=/​sbin:/​bin:/​usr/​sbin:/​usr/​bin +..
-       ​MAILTO=root +START_HOURS_RANGE=3-22 
-       RANDOM_DELAY=30 +... 
-       # Anacron jobs will start between 6am and 8am+1                 ​2 ​                 testjob ​           date >> ​/tmp/date
-       ​START_HOURS_RANGE=6-8 +
-       # delay will be 5 minutes + RANDOM_DELAY for cron.daily +
-       ​1 ​        ​5 ​   cron.daily          nice run-parts /etc/cron.daily +
-       7         ​0 ​   cron.weekly ​        nice run-parts ​/etc/cron.weekly +
-       ​@monthly ​ 0    cron.monthly ​       nice run-parts /​etc/​cron.monthly+
 </​file>​ </​file>​
 +
 +Syntax überprüfen:​
 +  anacron -T
 +
 +testjob sofort ausführen:
 +  anacron -df testjob
 +
lpi1/anacron.txt · Zuletzt geändert: 2015/08/18 07:45 von ingo_wichmann