Declarative units,
Type=simplepreferred,Restart=on-failure, andsystemctl statusfor diagnosis.
systemd without pain
Prefer `Type=simple`
The process runs in foreground; systemd handles daemonizing. No double-fork code.
Set `Restart=on-failure`
Services auto-restart on crash. Not on clean exit.
Use `ExecStart` with absolute paths
Never rely on PATH in units.
Logs via `journalctl -u name -f`
Live tail without a separate log file.
Timers instead of cron
OnCalendar=*-*-* 03:00:00is more precise and logs via journald.