summaryrefslogtreecommitdiff
path: root/src/etc/systemd/system/keepalived.service.d/override.conf
blob: 923e1d280ed83308d0ac6ec97548fce0dd60afb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
[Unit]
After=vyos-router.service
# Only start if there is a configuration file
ConditionFileNotEmpty=/run/keepalived/keepalived.conf

[Service]
KillMode=process
Type=simple
# Read configuration variable file if it is present
ExecStart=
ExecStart=/usr/sbin/keepalived --use-file /run/keepalived/keepalived.conf --pid /run/keepalived/keepalived.pid --dont-fork --snmp
ExecReload=/bin/kill -HUP $MAINPID
PIDFile=/run/keepalived/keepalived.pid