Bonjour,
je dispose de plusieurs serveur avec des tâches cron identiques, j’ai donc décider de mettre à jour les fichiers /etc/crontab par un rsync combiné avec ssh.
le seul problème c’est que depuis que j’ai fait ça, mes tâches cron ne s’exécutent plus, j’ai pris l’entête du fichier /etc/crontab identique pour tous les serveurs sachant que ce sont les mêmes distributions.
Voilà un des fichiers sources:
# /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 )
#
0 1 * * * root /usr/sbin/ntpdate ntp.tuxfamily.net
0 7 * * * root /usr/sbin/ntpdate ntp.tuxfamily.net
0 13 * * * root /usr/sbin/ntpdate ntp.tuxfamily.net
0 19 * * * root /usr/sbin/ntpdate ntp.tuxfamily.net
0 * * * * www-data php /var/scripts/mc_cron_h.php
MAILTO=cron@XXXX.net
0 0 * * * www-data php /var/scripts/mc_update.php
1 0 * * * www-data php /var/scripts/mc_cron_6.php
1 6 * * * www-data php /var/scripts/mc_cron_6.php
1 12 * * * www-data php /var/scripts/mc_cron_6.php
1 18 * * * www-data php /var/scripts/mc_cron_6.php
Je n’arrive pas à déterminer d’ou le problème vient, j’envois un /etc/init.d/cron reload à chaque serveur et j’ai bien vérifié les droits du fichier: rw-r–r-- 1 root root 1327 6 nov. 04:05 crontab
Merci pour l’aide.
