15 lines
463 B
Plaintext
15 lines
463 B
Plaintext
|
[Unit]
|
||
|
Description=Keepalive Daemon (LVS and VRRP)
|
||
|
After=network-online.target
|
||
|
Wants=network-online.target
|
||
|
ConditionFileNotEmpty={{ deploy_keepalived_config_dir }}/keepalived.conf
|
||
|
|
||
|
[Service]
|
||
|
# Type=notify
|
||
|
EnvironmentFile=-/etc/default/{{ deploy_keepalived_service_name }}
|
||
|
ExecStart={{ deploy_keepalived_path }} -f {{ deploy_keepalived_config_dir }}/keepalived.conf --dont-fork $DAEMON_ARGS
|
||
|
ExecReload=/bin/kill -HUP $MAINPID
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|