[gull] Le crontab sous RedHat ne marche plus

Leopoldo Ghielmetti leopoldo.ghielmetti at a3.epfl.ch
Thu Nov 30 15:51:33 CET 2006


On Thu, 2006-11-30 at 15:33 +0100, Daniel Cordey wrote:
> On Thursday 30 November 2006 14:57, Leopoldo Ghielmetti wrote:
> > ...
> > Nov  1 16:09:33 ews05 crond: crond shutdown succeeded
> > Nov  1 16:12:31 ews05 crond: crond startup succeeded
> > Nov  3 08:41:13 ews05 crond: crond startup succeeded
> > Nov 15 17:33:59 ews05 crond: crond shutdown succeeded
> > Nov 16 14:33:41 ews05 crond: crond startup succeeded
> > Nov 16 15:13:15 ews05 crond: crond startup succeeded
> > Nov 27 11:13:51 ews05 crond: crond shutdown succeeded
> > Nov 27 11:13:51 ews05 crond: crond startup succeeded
> 
> Surprenant... je ne suis pas sous RH mais sous Ubuntu. La version de cron est 
> aussi issue de celle de Paul Vixie mais semble plus ancienne. Toutefois, 
> comme la base semble etre la meme, je ne comprends pas que tu n'aies pas 
> d'infos a propos des process demarres par cron. Tel que (sur mon systeme) :
> 
> ...
> Nov 30 10:17:01 mjtlnx5 /USR/SBIN/CRON[15103]: (root) CMD (   
> run-parts --report /etc/cron.hourly)
> Nov 30 10:30:02 mjtlnx5 /USR/SBIN/CRON[15237]: (smmsp) CMD 
> (test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp)
> Nov 30 10:45:02 mjtlnx5 /USR/SBIN/CRON[15448]: (smmsp) CMD 
> (test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp)
> Nov 30 11:00:02 mjtlnx5 /USR/SBIN/CRON[15631]: (root) CMD (   
> test -x /usr/sbin/tigercron && { [ -r "$DEFAULT" ] && . "$DEFAULT" ; 
> nice -n$NICETIGER /usr/sbin/tigercron -q ; })
> ...
> 
> Le crond doit bien ecrire quelque part ce qu'il fait (en dehors de "je 
> demarre" et "je m'arete"), non ? 

Oui, il le fait dans /var/log/cron et c'est la dedans qu'il y a les
lignes STARTUP que j'ai donné dans le mail envoyé à 12:06. Effectivement
il y a beaucoup plus que simplement les start et les stop, p.e. sur la
machine que je suis en train de regarder maintenant j'ai:
Oct 10 16:30:00 ews05 CROND[26060]: (root) CMD
(/etc/init.d/jboss_production watchdog)
Oct 10 16:30:00 ews05 CROND[26066]: (root) CMD (/etc/init.d/mqm
watchdog)
Oct 10 16:45:00 ews05 CROND[26165]: (root) CMD (/etc/init.d/jboss_test
watchdog)
Oct 10 16:45:00 ews05 CROND[26167]: (root) CMD
(/etc/init.d/jboss_production watchdog)
Oct 10 16:45:00 ews05 CROND[26169]: (root) CMD (/etc/init.d/mqm
watchdog)
Oct 10 17:00:00 ews05 CROND[26317]: (root) CMD (/etc/init.d/jboss_test
watchdog)
Oct 10 17:00:00 ews05 CROND[26321]: (root) CMD
(/etc/init.d/jboss_production watchdog)
Oct 10 17:00:00 ews05 CROND[26323]: (root) CMD (/etc/init.d/mqm
watchdog)
Oct 10 17:01:00 ews05 CROND[26380]: (root) CMD
(run-parts /etc/cron.hourly)
Oct 10 17:15:00 ews05 CROND[26471]: (root) CMD (/etc/init.d/jboss_test
watchdog)
Oct 10 17:15:00 ews05 CROND[26472]: (root) CMD
(/etc/init.d/jboss_production watchdog)
Oct 10 17:15:00 ews05 CROND[26474]: (root) CMD (/etc/init.d/mqm
watchdog)
Oct 10 17:30:00 ews05 CROND[26590]: (root) CMD (/etc/init.d/jboss_test
watchdog)
Oct 10 17:30:00 ews05 CROND[26592]: (root) CMD
(/etc/init.d/jboss_production watchdog)
Oct 10 17:30:00 ews05 CROND[26594]: (root) CMD (/etc/init.d/mqm
watchdog)
Oct 10 17:45:00 ews05 CROND[26709]: (root) CMD (/etc/init.d/jboss_test
watchdog)
Oct 10 17:45:00 ews05 CROND[26711]: (root) CMD
(/etc/init.d/jboss_production watchdog)
Oct 10 17:45:00 ews05 CROND[26713]: (root) CMD (/etc/init.d/mqm
watchdog)
Oct 10 17:59:54 ews05 crond[27597]: (CRON) STARTUP (V5.0)
Oct 31 18:08:53 ews05 crontab[7166]: (root) LIST (root)
Oct 31 18:10:01 ews05 crontab[7508]: (root) LIST (root)
Oct 31 18:10:07 ews05 crontab[7514]: (root) LIST (root)
Oct 31 20:02:01 ews05 crond[27597]: (*system*) RELOAD (/etc/crontab)
Oct 31 20:58:01 ews05 crond[27597]: (*system*) RELOAD (/etc/crontab)
Nov  1 16:12:31 ews05 crond[1798]: (CRON) STARTUP (V5.0)
Nov  3 08:41:13 ews05 crond[1977]: (CRON) STARTUP (V5.0)
Nov 16 14:33:41 ews05 crond[1857]: (CRON) STARTUP (V5.0)
Nov 16 15:13:15 ews05 crond[2013]: (CRON) STARTUP (V5.0)
Nov 27 11:13:51 ews05 crond[29897]: (CRON) STARTUP (V5.0)

A noter que sur cette machine le cron à été mis à jour le 10 Octobre
pour me permettre de vérifier le pourquoi du problème rencontré sur les
autres machines (auxquelles je n'ai pas accès tout le temps). Et a
partir de la mise à jour il a arrêté de fonctionner. Donc il s'agit bien
d'un problème récurrent et pas juste quelque chose qui est arrivé une
fois. Toutes les machines sur lesquelles j'installe le nouveau
vixie-cron ne marchent plus.

> dc

ciao, Leo





More information about the gull mailing list