make some more explicit requirements in ipset.service

This commit is contained in:
staticsafe 2020-04-15 10:13:53 -04:00
parent 8aa1d869ba
commit 3fb3507d40
1 changed files with 5 additions and 3 deletions

View File

@ -1,14 +1,16 @@
[Unit]
Description=Loading IP Sets
Before=network-pre.target netfilter-persistent.service
Wants=network-pre.target
Before=netowrk.target
Before=netfilter-persistent.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/ipset -f /etc/ipset.conf restore
ExecReload=/sbin/ipset -f /etc/ipset.conf restore
ExecStop=/sbin/ipset destroy
ExecStop=/sbin/ipset flush
ExectStopPost=/sbin/ipset destroy
[Install]
WantedBy=multi-user.target
RequiredBy=netfilter-persistent.service