9c5936
[Unit]
9c5936
Description=Initialise the Linux Virtual Server
9c5936
After=syslog.target network.target
9c5936
9c5936
[Service]
9c5936
Type=oneshot
9c5936
ExecStart=/bin/bash -c "exec /sbin/ipvsadm-restore < /etc/sysconfig/ipvsadm"
9c5936
ExecStop=/bin/bash -c "exec /sbin/ipvsadm-save -n > /etc/sysconfig/ipvsadm"
9c5936
ExecStop=/sbin/ipvsadm -C
9c5936
RemainAfterExit=yes
9c5936
9c5936
[Install]
9c5936
WantedBy=multi-user.target
9c5936