deploy_keepalived/templates/keepalived.service.j2

16 lines
487 B
Plaintext
Raw Normal View History

2024-03-09 22:36:26 +00:00
# {{ ansible_managed }}
[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
2024-03-09 22:36:26 +00:00
EnvironmentFile=-{{ deploy_keepalived_config_dir }}/keepalived.env
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