`systemctl status opskit-health.service` shows `Main process exited, code=exited, status=203/EXEC`.
BeginnerTroubleshootingTroubleshooting: cron and systemd timers
Answer
Likely causes → systemd could not exec the ExecStart= binary: wrong path, missing execute bit, a bad shebang (CRLF, interpreter not installed), the file on a noexec mount, or SELinux denying execution of a file in a home directory.
Diagnose →
journalctl -u opskit-health -n 20 --no-pager # "Failed at step EXEC spawning /opt/opskit/bin/health.sh: ..."
systemctl cat opskit-health | grep ExecStart
ls -l /opt/opskit/bin/health.sh; head -1 /opt/opskit/bin/health.sh | od -c | head -2
findmnt -no OPTIONS --target /opt/opskit/bin # look for noexec
ausearch -m avc -ts recent 2>/dev/null | tail # SELinux denials
The text after "spawning ...:" tells you which: No such file or directory (path or shebang interpreter), Permission denied (mode, noexec or SELinux), Exec format error (no shebang).
Fix → Use an absolute path, chmod 0755, a valid LF shebang, and install scripts under /usr/local/bin or /opt (with restorecon -Rv /opt/opskit on SELinux systems).
Prevent → An install.sh that sets modes and contexts, plus systemd-analyze verify opskit-health.service in CI.
More on Troubleshooting: cron and systemd timers
A new job in `/etc/cron.d/opskit` never runs. Syslog shows `cron[812]: (*system*opskit) ERROR (Missing newline before EOF, this crontab file will be ignored)`.BeginnerYou copied a line from `crontab -e` into `/etc/cron.d/backup`, and syslog shows `Error: bad username; while reading /etc/cron.d/backup`. Meanwhile a teammate's user crontab mails `/bin/sh: 1: root: not found` every night.BeginnerA script works when you run it, but the cron log email says `/opt/opskit/bin/backup.sh: line 22: aws: command not found`.BeginnerThis crontab line never produces a log file, and cron mails `/bin/sh: 1: Syntax error: end of file unexpected (expecting ")")`: `0 2 * * * /opt/backup.sh > /var/log/backup-$(date +%F).log 2>&1`IntermediateA cron job fails intermittently, but there are no emails and no logs. Syslog shows `(CRON) info (No MTA installed, discarding output)`.BeginnerA cron job that runs `docker exec -it db pg_dumpall` fails with `the input device is not a TTY`.Intermediate