Assuming a modern Linux host, is there any convenient way to spawn an interactive shell in the exact context systemd would use for a unit/service?
Alternatively, any way to attach a shell to a running process started by systemd?
The goal is to interactively test restrictions and capabilities, starting env, working path, etc.