Forum Linux.debian/ubuntu Comment paramètrer les CRONTAB

Posté par  .
Étiquettes : aucune
0
28
mai
2007
Bonjour,

J'ai un serveur web sous debian4 , mon hébergeur à mis en place plusieurs CRON:

-rwxr-xr-x 1 root root 5041 2007-02-26 16:21 /etc/cron.daily/apt
-rwxr-xr-x 1 root root 314 2007-03-14 10:11 /etc/cron.daily/aptitude
-rwxr-xr-x 1 root root 502 2007-01-02 12:26 /etc/cron.daily/bsdmainutils
-rwxr-xr-x 1 root root 3961 2007-01-20 04:46 /etc/cron.daily/exim4-base
-rwxr-xr-x 1 root root 419 2006-08-06 04:12 /etc/cron.daily/find
-rwxr-xr-x 1 root root 89 2006-04-08 18:16 /etc/cron.daily/logrotate
-rwxr-xr-x 1 root root 946 2007-01-29 07:20 /etc/cron.daily/man-db
-rwxr-xr-x 1 root root 3283 2006-12-19 19:02 /etc/cron.daily/standard
-rwxr-xr-x 1 root root 1307 2006-05-25 05:38 /etc/cron.daily/sysklogd
-rwxr-xr-x 1 root root 129 2006-12-19 19:02 /etc/cron.monthly/standard
-rwxr-xr-x 1 root root 520 2007-01-29 07:20 /etc/cron.weekly/man-db
-rwxr-xr-x 1 root root 1092 2006-05-25 05:38 /etc/cron.weekly/sysklogd

ma question est la suivante:

Si je veux modifier les heures de ces différents CRON , je vais ou ... dans quels fichiers sont positionnés les scripts.


Merci
  • # /etc/crontab

    Posté par  . Évalué à 3.

    Dans /etc/crontab tu dois avoir quelque chose comme

    # 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 )


    Il te suffit de changer les heures.

    Crond rechargera même tout seul le fichier une fois que tu l'auras modifié sans redémarrage.

Suivre le flux des commentaires

Note : les commentaires appartiennent à celles et ceux qui les ont postés. Nous n’en sommes pas responsables.