12 lines
287 B
SYSTEMD
12 lines
287 B
SYSTEMD
|
[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
|