This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangzhihan-device-manageme…/roles/ha_backup/files/keepalived.service.j2
zhangzhihan 465622889c update 20.11
2020-11-12 22:56:55 +06:00

17 lines
370 B
Django/Jinja

[Unit]
Description=LVS and VRRP High Availability Monitor
After=syslog.target network-online.target
[Service]
Type=forking
PIDFile=/var/run/keepalived.pid
KillMode=process
EnvironmentFile=-/etc/sysconfig/keepalived
ExecStart=/usr/sbin/keepalived $KEEPALIVED_OPTIONS
ExecReload=/bin/kill -HUP $MAINPID
RestartSec=30s
Restart=always
[Install]
WantedBy=multi-user.target