Pourquoi ne puis-je pas redémarrer le démon cron dans 12.04 LTS?

Je viens de changer le fuseau horaire sur mon serveur et je dois donc redémarrer crond pour qu’il prenne en charge le changement, mais lorsque j’essaie, voici ce qui se produit:

root@s2:/# service cron restart stop: Unknown job: cron start: Unknown job: cron 

ou

 root@s2:/# /etc/init.d/cron restart Rather than invoking init scripts through /etc/init.d, use the service(8) utility, eg service cron restart initctl: Unknown job: cron 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, eg stop cron ; start cron. The restart(8) utility is also available. 

La liste de processus indique:

 root@s2:/# ps aux | grep cron root 10051 0.0 0.1 21992 732 ? Ss 11:09 0:00 cron 

Qu’est-ce que je fais mal, s’il vous plaît?

Qu’est-ce que je fais mal, s’il vous plaît?

Vous devez exécuter le service avec les permissions root:

 :~$ sudo service cron restart cron stop/waiting cron start/running, process 6325 

initctl: Emploi inconnu: cron

arrêt: travail inconnu: cron
début: travail inconnu: cron

Ce sont des indications que quelque chose de très méchant se passe avec cron. Vous devrez peut-être réinstaller cron pour que tout fonctionne à nouveau:

 sudo apt-get install --reinstall cron 

Vous ne faites rien de mal, c’est juste une suggestion. Au lieu de faire ce travail avec … / init.d / …., vous pouvez simplement taper:

 service cron restart 

C’est TOUT, c’est essayer de vous dire.