Monitor a systemd timer
Facts about the platform below come from research checked October 21, 2026. The ping URLs are CronNudge’s. systemd records timer and service results in the journal. It does not send a chat or email alert unless you add one. CronNudge is that alert.
# /etc/systemd/system/backup.service
[Unit]
OnFailure=backup-fail.service
[Service]
Type=oneshot
ExecStart=/usr/local/bin/backup.sh
ExecStartPost=/usr/bin/curl -fsS -m 10 https://cronnudge.com/ping/YOUR_ID
# /etc/systemd/system/backup-fail.service
[Service]
Type=oneshot
ExecStart=/usr/bin/curl -fsS -m 10 https://cronnudge.com/ping/YOUR_ID/fail
# /etc/systemd/system/backup.timer
[Timer]
OnCalendar=*-*-* 03:00:00
Persistent=true
[Install]
WantedBy=timers.target- OnFailure takes a unit name, not a shell command. ExecStartPost runs only after ExecStart exits 0.
- Persistent=true runs a missed timer once at the next boot. If the machine stays off past grace, the missing ping is the alert.
- systemctl daemon-reload && systemctl enable --now backup.timer, then trigger the service once and confirm the ping.
Longer guide: Timer not running · Daylight saving time · Render, Railway, and Fly.io cron · Heroku Scheduler · Environment variables · Stuck or hanging jobs · @reboot versus a boot unit