core-admin/linux/systemd/qubes-reload-firewall@.service
Marek Marczykowski-Górecki a9ece6f706
Remove qubes-netvm.service
Since qubesd properly handle chained startup of sys-net->sys-firewall
etc, we don't need a separate service to start netvm explicitly earlier.

Fixes QubesOS/qubes-issues#2533
2017-07-07 20:35:13 +02:00

12 lines
287 B
Desktop File

[Unit]
Description=Reload firewall for VM %i
[Service]
Type=simple
ExecStart=/usr/bin/qvm-firewall --force-root -r %i
ExecStartPost=/bin/sh -c '/usr/bin/qvm-firewall --force-root %i | grep -q "expires at" || systemctl stop %p@%i.timer'
Group=qubes
[Install]
WantedBy=multi-user.target