From 5931d2530e9ab1b0fa0360602144d745b415ca42 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 3 Jan 2022 20:30:49 +0100 Subject: keepalived: T4128: add missing keepalived.service file (cherry picked from commit 5a73c946000902f6e445b0803ca090f7fc6e0954) --- src/systemd/keepalived.service | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/systemd/keepalived.service (limited to 'src/systemd/keepalived.service') diff --git a/src/systemd/keepalived.service b/src/systemd/keepalived.service new file mode 100644 index 000000000..a462d8614 --- /dev/null +++ b/src/systemd/keepalived.service @@ -0,0 +1,13 @@ +[Unit] +Description=Keepalive Daemon (LVS and VRRP) +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=/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 -- cgit v1.2.3