1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
[Unit] Description=LVS and VRRP High Availability Monitor After=network-online.target syslog.target Wants=network-online.target [Service] Type=notify NotifyAccess=all PIDFile=/run/keepalived.pid KillMode=process ExecStart=/usr/sbin/keepalived --dont-fork $KEEPALIVED_OPTIONS ExecReload=/bin/kill -HUP $MAINPID [Install] WantedBy=multi-user.target