diff --git a/reveal/sysadmin.html b/reveal/sysadmin.html index 877c236..51609fd 100644 --- a/reveal/sysadmin.html +++ b/reveal/sysadmin.html @@ -47,58 +47,66 @@
-

Cron

-
Les fichiers utiles :
-
-		
-# systemctl status cron
-# vim /etc/crontab
-# vim /etc/default/cron
-		
-	
-
-	
-# vim /etc/cron.d/example
-	
-30 05 * * 0 www-data /usr/local/adm/savelog-weekly
-
-
+
+

Cron

+
-
-

Cron (suite)

-
-
-$ crontab -e
-
-
-
-
-# crontab -u jdoe -e
-
-0,30,45,51 * * * * /usr/local/adm/send-data
-*/15 * * * * /usr/local/adm/check-nis 1>/dev/null 2>&1
-00 01 * * * nice -10 find /inf -name core -exec rm -f {} \;
-10 03 * * 1-6 nice -10 /usr/local/adm/sauvegarde-daily
-30 05 * * 0 /usr/local/adm/savelog-weekly
-30 06 1 * * /usr/local/adm/savelog-monthly
-00 00 1 1 * /usr/local/bin/happy-new-year
-MAILTO=alert@example.com
-@daily /usr/local/bin/minuit-check
-
-
+
+

Les fichiers de cron

+
+  		
+  # systemctl status cron
+      
+      
+  # vim /etc/crontab
+  # vim /etc/default/cron
+  		
+  	
+
+  	
+      # vim /etc/cron.d/example
+      30 05 * * 0 www-data /usr/local/adm/savelog-weekly
+    
+    
+
-
-

Cron (suite)

-
-
-$ man 5 crontab
-
-
-$ crontab -l
-
-
-# crontab -u jdoe -l
-
+  
+
+    	

Éditer une table

+ + $ crontab -e + + + # crontab -u jdoe -e + + + 0,30,45,51 * * * * /usr/local/adm/send-data + */15 * * * * /usr/local/adm/check-nis 1>/dev/null 2>&1 + 00 01 * * * nice -10 find /inf -name core -exec rm -f {} \; + 10 03 * * 1-6 nice -10 /usr/local/adm/sauvegarde-daily + 30 05 * * 0 /usr/local/adm/savelog-weekly + 30 06 1 * * /usr/local/adm/savelog-monthly + 00 00 1 1 * /usr/local/bin/happy-new-year + MAILTO=alert@example.com + @daily /usr/local/bin/minuit-check + +
+
+ +
+
+    	

Documentation et consultation

+ + $ man 5 crontab + + + $ crontab -l + + + # crontab -u jdoe -l + +
+
@@ -266,7 +274,7 @@ Journaux principaux : * auth.log : authentification système (login, su, getty) * daemon.log : relatif aux daemons * mail.* : relatifs aux mails -* kern.log : générés par le noyau +* kern.log : générés par le noyau * user.log : générés par des programmes utilisateur * debug : messages de debug * messages : messages d'infos