Bonjour à tous,
Je suis face à un problème assez étrange et pour lequel j’ai besoin d’assistance.
J’ai mon utilisateur root qui possède une crontab que j’ai édité en utilisant la commande :
Voici la crontab correspondante :
# m h dom mon dow command
00 * * * * . ~/.keychain/domUd4-sh;bash /home/mysql_dump/dumpORflush.sh >> /home/mysql_dump/dumpORflush.log 2>&1
00 01 * * * /home/mysql_dump/cleandumps.sh >> /home/mysql_dump/cleandumps.log 2>&1
Tout se passe bien et chaque heure j’ai un un dump mysql sauf après 6H00 du matin, j’ai un dump qui se lance à 6H25 et celui de 7H00 est sauté. Puis tout repart bien après 8H00.
En fouillant un peu j’ai trouvé que le fichier /etc/crontab exécute de façon journalière les scripts du répertoire /etc/cron.daily à 6H25 :
[code]# /etc/crontab: system-wide crontab
Unlike any other crontab you don’t have to run the `crontab’
command to install the new version when you edit this file
and files in /etc/cron.d. These files also have username fields,
that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#[/code]
Cela serait-il lié ?
Merci pour vos réponses