make some more explicit requirements in ipset.service
This commit is contained in:
parent
8aa1d869ba
commit
3fb3507d40
@ -1,14 +1,16 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Loading IP Sets
|
Description=Loading IP Sets
|
||||||
Before=network-pre.target netfilter-persistent.service
|
Before=netowrk.target
|
||||||
Wants=network-pre.target
|
Before=netfilter-persistent.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
ExecStart=/sbin/ipset -f /etc/ipset.conf restore
|
ExecStart=/sbin/ipset -f /etc/ipset.conf restore
|
||||||
ExecReload=/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]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
RequiredBy=netfilter-persistent.service
|
||||||
|
Loading…
Reference in New Issue
Block a user