Tache cron

Fermé
Thomas - 23 oct. 2016 à 11:07
mamiemando Messages postés 33077 Date d'inscription jeudi 12 mai 2005 Statut Modérateur Dernière intervention 18 avril 2024 - 24 oct. 2016 à 09:45
Bonjour, à tous

j'ai un soucis avec une tache cron (mon développeur s'est fait la mal donc je dois me débrouiller ... et je n'y connais RIEN.

le cron n'a plus l'air de tourner et je dois absolument le redémarrer (en attendant de trouver un nouveau DEV spécialisé xml/cakephp)

j'ai tapé :
sudo /etc/init.d/cron restart

mais ça n'as pas l'air de faire grand chose :(

root@sd-XXXX:~# sudo /etc/init.d/cron restart
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service cron restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) and then start(8) utilities,
e.g. stop cron ; start cron. The restart(8) utility is also available.
cron stop/waiting
cron start/running, process 30000



une idée ?

1 réponse

mamiemando Messages postés 33077 Date d'inscription jeudi 12 mai 2005 Statut Modérateur Dernière intervention 18 avril 2024 7 748
Modifié par mamiemando le 24/10/2016 à 09:46
Bonjour,

Ça semble correct. Tu as bien relancé cron, et normalement si tu lance la commande :

ps faux | grep cron


... tu devrais voir une ligne le concernant.

Le message que tu vois te dis juste que même si ta syntaxe est correcte, tu pourrais utiliser
service cron restart
.

Ensuite, pour découvrir comment utiliser cron, tu peux regarder :
https://doc.ubuntu-fr.org/cron
https://doc.ubuntu-fr.org/anacron

... ou si tu préfères il existe aussi une alternative à cron :
https://doc.ubuntu-fr.org/fcron

Bonne chance
0