Configure a one-time task service.
Section: Restart Policy, Types, Hardening
One-shot service type
ini
ini
[Service]
Type=oneshot
ExecStart=/usr/local/bin/cleanup.sh
RemainAfterExit=yesExplanation
Often paired with timers.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Restart Policy, Types, Hardening