Ce mémo a été publié le 21 janvier 2011 et peut contenir des informations qui peuvent être incomplètes, non mises à jour voir erronées du fait de son ancienneté.
N'hésitez pas à compléter votre recherche sur des articles plus récents.
Il peut être utile d’activer la log de cron.
Voici comment …
Editer le fichier
1 |
<span style="vertical-align: top;"><span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>syslog.conf</span> |
Décommenter ou ajouter la ligne suivante :
1 |
<span style="vertical-align: top;">cron.<span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>cron.log</span> |
Enregistrer le fichier.
Relancer syslog :
1 |
<span style="vertical-align: top;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>sysklogd restart</span> |
Créer le fichier /var/log/cron.log :
1 |
<span style="vertical-align: top;"><span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>cron.log</span> |