[Unit] Description=ZHCT Keepalived 2.3.4 After=network-online.target haproxy.service nginx.service Wants=network-online.target [Service] Type=notify ExecStart=/usr/local/sbin/keepalived --dont-fork --log-console --use-file=/etc/keepalived/keepalived.conf ExecReload=/usr/local/sbin/keepalived --config-test --use-file=/etc/keepalived/keepalived.conf ExecReload=/bin/kill -HUP $MAINPID Restart=on-failure [Install] WantedBy=multi-user.target