Lets assume our IPVS table is saved under /usr/local/etc/ipvs-table
(e.g. as the output of ipvsadm -S
).
Create the service file at /etc/systemd/system/restore-ipvs-table.service
:
[Unit]
Description=Restore IPVS table from file
After=network.target