wie prüfe ich ein /etc/crontab auf syntax-Fehler? Ein EXTRA_OPTS='-L 2' in /etc/default/cron solls bringen, liefert aber eher eine philosophische Betrachtung der crontab denn irgend ein praktischen Hinweis, wo ein Fehler sein könnte:
Code: Alles auswählen
Jun 28 15:43:52 archivpi systemd[1]: cron.service: Found left-over process 1656 (cron) in control group while starting unit. Ignoring.
Jun 28 15:43:52 archivpi systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Jun 28 15:43:52 archivpi systemd[1]: cron.service: Found left-over process 1670 (sh) in control group while starting unit. Ignoring.
Jun 28 15:43:52 archivpi systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Jun 28 15:43:52 archivpi systemd[1]: cron.service: Found left-over process 1672 (pat_exportfiles) in control group while starting unit. Ignoring.
Jun 28 15:43:52 archivpi systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Jun 28 15:43:52 archivpi systemd[1]: cron.service: Found left-over process 1685 (screen) in control group while starting unit. Ignoring.
Jun 28 15:43:52 archivpi systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Jun 28 15:43:52 archivpi systemd[1]: cron.service: Found left-over process 1687 (zeiged) in control group while starting unit. Ignoring.
Jun 28 15:43:52 archivpi systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Jun 28 15:43:52 archivpi systemd[1]: cron.service: Found left-over process 5609 (cron) in control group while starting unit. Ignoring.
Jun 28 15:43:52 archivpi systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Jun 28 15:43:52 archivpi systemd[1]: cron.service: Found left-over process 5648 (sh) in control group while starting unit. Ignoring.
[...]
Jun 28 15:43:52 archivpi systemd[1]: Started Regular background program processing daemon.
Jun 28 15:43:52 archivpi cron[4141]: (CRON) INFO (pidfile fd = 3)
Jun 28 15:43:52 archivpi cron[4141]: Error: bad username; while reading /etc/crontab
Jun 28 15:43:52 archivpi cron[4141]: (*system*) ERROR (Syntax error, this crontab file will be ignored)
Jun 28 15:43:52 archivpi cron[4141]: (CRON) INFO (Skipping @reboot jobs -- not system startup)
Meine crontab umfasst ca. 30 Einträge, habe sie umgeordnet, ein oder zwei Einträge geändert - und schon gehts nichts mehr.
Habe in der Vergangenheit Stunden damit verbracht Fehler zu finden, jetzt frage ich mal, ob die crontab die Linux-User zur Genauigkeit erziehen und notfalls mit stundenlanger Fehlersuch (einkommentieren, auskommentieren, ...) bestraften soll oder es einen "debugger" gibt, der denn nun mitteilt, welche Zeile der ca. 30 Einträge der cron nicht mehr verdaut.
Gruß
Eckard