core-admin/linux/systemd/qubes-reload-firewall@.service

12 lines
287 B
SYSTEMD
Raw Permalink Normal View History

[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