Newer
Older
# systemd servive unit file for Keepalived
[Unit]
Description=Keepalived service for High Availability with VRRP
After=network.target network-online.target
ConditionFileNotEmpty=/etc/keepalived/keepalived.conf
[Service]
Type=simple
ExecStart=/usr/sbin/keepalived --dont-fork
ExecReload=/bin/kill -s HUP $MAINPID #Define the procedure of killing the processes belonging to the Keepalived service unit.
KillMode=process
[Install]
WantedBy=multi-user.target