qubes-reload-firewall@.service 313 B

123456789101112
  1. [Unit]
  2. Description=Reload firewall for VM %i
  3. After=qubes-netvm.service
  4. [Service]
  5. Type=simple
  6. ExecStart=/usr/bin/qvm-firewall --force-root -r %i
  7. ExecStartPost=/bin/sh -c '/usr/bin/qvm-firewall --force-root %i | grep -q "expires at" || systemctl stop %p@%i.timer'
  8. Group=qubes
  9. [Install]
  10. WantedBy=multi-user.target