systemd-run
Verified for current stable LTS
Systemd Run Command: Start Transient Service Remaining After Exit
Use for start transient service remaining after exit with Systemd Run. Exact CLI syntax to start transient service remaining after exit using Systemd Run.
When to use this: Use for start transient service remaining after exit with Systemd Run.
Command Syntax
sudo systemd-run -r --set-env=<name>=<value> <command> <argument1 argument2 ...> sudo systemd-run -r --set-env=<name>=<value> <command> <argument1 argument2 ...> Live Command Builder
Final Command
sudo systemd-run -r --set-env=<name>=<value> <command> <argument1 argument2 ...> Command Breakdown
-r- Command Option
- Tool-specific option used by this command invocation.
--set-env=<name>=<value>- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to start transient service remaining after exit using Systemd Run.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Systemd Run Command: Set Process Properties And Wait
systemd-run -p MemoryMax=<memory_in_bytes> -p CPUQuota=<percentage_of_CPU_time>% --wait <command> Systemd Run Command: Start Interactive Transient Service systemd-run -r --pty <command> Systemd Run Command: Start Transient Service With Custom Unit Name sudo systemd-run -u <name> --description <string> <command> <argument1 argument2 ...> Systemd Run Command: Start Transient Service With Privileges sudo systemd-run <command> <argument1 argument2 ...> Systemd Run Command: Start Transient Service Without Privileges systemd-run --user <command> <argument1 argument2 ...>