Open polarina opened 9 years ago
We should check if a unit is in Gentoo yet or not too.
@polarina thanks for your service file! Simple and working. The only thing I would add is -exist
flag, so service can be reloaded to load new configuration file without issues. Fragment of container linux config for interested people:
- name: ipset.service
enabled: true
contents: |
[Unit]
Description=Loading IP Sets
Before=network.target iptables-restore.service ip6tables-restore.service
Wants=network.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/ipset -exist -f /etc/ipset.conf restore
ExecReload=/usr/sbin/ipset -exist -f /etc/ipset.conf restore
ExecStop=/usr/sbin/ipset destroy
[Install]
WantedBy=basic.target
Can a
ipset
service be added to restoreipset
configuration? I took a quick stab at making a service definition, based on the one provided by Arch GNU/Linux.