All recipes
All recipes
Services (.service)
- Order a service after the network or another unit (After, Requires, Wants) 4 min →
- Pass environment variables to a systemd service 3 min →
- Run a one-shot task at boot (Type=oneshot) 3 min →
- Auto-restart a service when it crashes (with backoff and a rate limit) 4 min →
- Run a systemd service as a specific user and group 3 min →
- Run a program at boot as a systemd service 3 min →
- Run a long-running program as a user service (no root) 3 min →
Timers (.timer)
- Run a job daily at a specific time (and catch up after downtime) 3 min →
- Run a job every 5 minutes with a systemd timer (the cron replacement) 4 min →
- Run a job N minutes after boot, then on an interval (OnBootSec / OnUnitActiveSec) 3 min →
- Spread scheduled jobs with RandomizedDelaySec (avoid the thundering herd) 3 min →
Mounts (.mount)
Path units (.path)
Sockets (.socket)
Hardening
Managing units