qubes-reload-firewall@.service 287 B

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