Moin,
ich habe am 6.9. abends Updates für cron/cronie eingespielt:
- cron-4.2-84.4 -> cron-4.2-85.1
- cronie-1.5.5-84.4 -> cronie-1.5.7-85.1
Seitdem werden meine Skripte in /etc/cron.daily nicht mehr ausgeführt:
Anhand meiner Sicherung vom 6.9. morgens konnte ich feststellen, dass sich die Syntax der /etc/crontab geändert hat.
/etc/crontab vor Update:
Code
SHELL=/bin/sh
PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin
MAILTO=root
#
# check scripts in cron.hourly, cron.daily, cron.weekly, and cron.monthly
# 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,tue,wed,thu,fri,sat
# | | | | |
# * * * * * user-name command to be executed
-*/15 * * * * root test -x /usr/libexec/cron/run-crons && /usr/libexec/cron/run-crons >/dev/null 2>&1
Alles anzeigen
/etc/crontab nach Update:
Code
SHELL=/bin/sh
PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin
MAILTO=root
#
# check scripts in cron.hourly, cron.daily, cron.weekly, and cron.monthly
# 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,tue,wed,thu,fri,sat
# | | | | |
# * * * * * user-name command to be executed
@hourly root run-parts /etc/cron.hourly
@daily root run-parts /etc/cron.daily
@weekly root run-parts /etc/cron.weekly
@monthly root run-parts /etc/cron.monthly
Alles anzeigen
Das Skript /usr/libexec/cron/run-crons existiert noch, ich könnte daher wohl die alte Syntax wieder herstellen. Aber eigentlich sollten die Aufrufe ja so funktionieren, wie sie beim Update eingerichtet wurden. Das nächste Update wird mir die /etc/crontab ja vermutlich auch wieder umschreiben.
Daher die Frage: hat jemand eine Idee, warum die durch das Update eingerichtete /etc/crontab nicht funktioniert?