Désolé mais j'ai encore besoin de vos lumières... J'ai du mal à faire fonctionner cron sur mon petit serveur Manjaro.
J'ai bien installé cronie, puis je l'ai activé (
systemctl enable cronie
)J'ai renseigné les tâches avec
crontab -e
, ce qui donne crontab -l
:
Code : Tout sélectionner
# 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
MAILTO=mon.mail@orange.fr
# Example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,>
# | | | | |
# * * * * * user-name command to be executed
40 16 * * * root cd / && run-parts --report /etc/cron.daily
17 * * * * root cd / && run-parts --report /etc/cron.hourly
Code : Tout sélectionner
-rw-r--r-- 1 sylvain sylvain 268 15 avril 2022 00logwatch
-rw-r--r-- 1 sylvain sylvain 2211 15 avril 2022 locate
-rw-r--r-- 1 sylvain sylvain 377 15 avril 2022 logrotate
-rw-r--r-- 1 sylvain sylvain 1123 15 avril 2022 man-db
Pourtant crond est bien lancé...
Code : Tout sélectionner
ps aux | grep crond
root 62167 0.0 0.0 6708 2956 ? Ss 16:38 0:00 /usr/bin/crond -n