qubes-netvm.service 385 B

12345678910111213141516
  1. [Unit]
  2. Description=Qubes NetVM startup
  3. After=qubes-core.service qubes-qmemman.service
  4. [Service]
  5. Type=oneshot
  6. Group=qubes
  7. Environment=DISPLAY=:0
  8. RemainAfterExit=yes
  9. KillMode=none
  10. ExecStart=/bin/sh -c 'NETVM=`qubes-prefs --get default-netvm`; [ -n "$NETVM" ] && qvm-start -q --no-guid $NETVM'
  11. [Install]
  12. WantedBy=multi-user.target
  13. # Cover legacy init.d script
  14. Alias=qubes_netvm.service