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=/etc/my-service.env<path/to/env/file> --uid=my-service-<service user> --pty bash