Skip to content
Snippets Groups Projects
keepalived.service.j2 467 B
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