systemd/foomuuri-boot.service
raw| 1 | [Unit] |
| 2 | Description=Multizone bidirectional nftables firewall - Early boot |
| 3 | Documentation=https://foomuuri.foobar.fi/latest/ |
| 4 | After=local-fs.target |
| 5 | ConditionPathExists=/var/lib/foomuuri/good.fw |
| 6 | |
| 7 | [Service] |
| 8 | Type=oneshot |
| 9 | RemainAfterExit=yes |
| 10 | ExecStart=/bin/sh -c 'cat /var/lib/foomuuri/good.fw | nft -f -' |
| 11 | # Above "sh 'cat | nft'" is a SELinux workaround |
| 12 | ProtectSystem=full |