2020-01-11 22:08:29 +08:00
|
|
|
[Unit]
|
|
|
|
|
Description=LVS and VRRP High Availability Monitor
|
|
|
|
|
After=network-online.target syslog.target
|
|
|
|
|
Wants=network-online.target
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Type=forking
|
2020-05-12 11:47:24 +08:00
|
|
|
PIDFile=/run/keepalived.pid
|
2020-01-11 22:08:29 +08:00
|
|
|
KillMode=process
|
|
|
|
|
EnvironmentFile=-/etc/sysconfig/keepalived
|
2023-06-12 17:02:35 +08:00
|
|
|
ExecStartPost=/usr/sbin/keepalived-start-post.sh
|
2020-01-11 22:08:29 +08:00
|
|
|
ExecStart=/usr/sbin/keepalived $KEEPALIVED_OPTIONS
|
|
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
2023-06-12 17:02:35 +08:00
|
|
|
ExecStopPost=/usr/sbin/keepalived-stop-post.sh
|
|
|
|
|
StartLimitBurst=1
|
|
|
|
|
StartLimitInterval=1s
|
2020-01-11 22:08:29 +08:00
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|