Hey,

On 03/24/2018 08:20 PM, daltong defourne wrote:
> Hello community!
> 
> 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)

Found that (didn't even know that was possible):

https://superuser.com/questions/1037466/how-to-start-a-systemd-service-after-user-login-and-stop-it-before-user-logout/1269158

I usually start stuff after logon with:
- the WM's autostart feature ( $HOME/.config/autostart/blah.desktop )
- or a system-wide .desktop file in /etc/xdg/autostart

I haven't tested if you can start systemd units from such scripts though
(issues with namespaces ?) but what you describe below can be achieved
with simple qvm-* commands.



> 
> 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 :) 
> 

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/970e390e-d00d-1954-a324-f936f26cbc95%40maa.bz.
For more options, visit https://groups.google.com/d/optout.

Reply via email to