I have an RPC service
qubes.Shutdown, which lets one qube shutdown a different qube.
app shuts down
app-data, if itself powered off.
My Systemd user service in
app looks this:
# ~/.config/systemd/user/shutdown.service [Unit] Description=shutdown svc [Service] Type=oneshot RemainAfterExit=true ExecStop=qrexec-client-vm app-data qubes.Shutdown [Install] WantedBy=default.target
… and is auto-started via
systemctl --user enable --now shutdown.service
Now, if I manually stop the service, everything works fine:
systemctl --user stop shutdown.service
But if I just shutdown the qube,
shutdown.service gets executed (confirmed by logging to a file), but
qrexec-client-vm has no effect!
What environment is needed for qrexec-client-vm to work properly with Systemd?