Skip to main content

Systemd Shell Execution

To start a shell with the same environment as a particular systemd service

sudo systemd-run --property=EnvironmentFile=<path/to/env/file> --uid=<service user> --pty bash