Create and run a one-off transient unit.
Section: User Units and Transient Units
Run a transient service
bash
bash
systemd-run --unit=adhoc-backup --description="Ad hoc backup" /usr/local/bin/backup.shExplanation
Great for controlled one-off execution under systemd supervision.
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 User Units and Transient Units
Run command in transient scope
Place an existing process subtree under a systemd scope.
Enable linger for user
Keep user services running without an active login session.