core-admin/linux/systemd/qubes-netvm.service
Marek Marczykowski-Górecki 28475f7214
systemd: adjust qubes-prefs options
As the service is called as root, it needs --force-root.

QubesOS/qubes-issues#2412
2016-11-26 04:08:58 +01:00

18 lines
446 B
Desktop File

[Unit]
Description=Qubes NetVM startup
After=qubes-core.service qubes-qmemman.service libvirtd.service
Before=systemd-user-sessions.service
[Service]
Type=oneshot
Group=qubes
Environment=DISPLAY=:0
RemainAfterExit=yes
KillMode=none
ExecStart=/bin/sh -c 'NETVM=`qubes-prefs --force-root default-netvm`; [ -n "$NETVM" ] && qvm-start -q --no-guid $NETVM'
[Install]
WantedBy=multi-user.target
# Cover legacy init.d script
Alias=qubes_netvm.service