I need to achieve the following:
A systemd unit that fires ONLY when user first logs in (not when bootup complete, so rc.local does not achieve what I want)
And, related need, I want to be able to determine if a particular VM is already running.
What I want to achieve:
sequential VM startup that does not rely on "start automatically" facilities of Qubes R3.2, that only fires after user logs in, and then starts a shell script that does the following:
1) check if a particular autostarty VM is already running (timeout and self-terminate with error if it is not running for 30 seconds after login)
2) when the VM is detected as running start VM2
3) wait for it to start, re-check for its running status (as in point 1)
4) start VM 3
Help very appreciated :)