summaryrefslogtreecommitdiff
path: root/src/systemd
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-01-03 20:30:49 +0100
committerChristian Poessinger <christian@poessinger.com>2022-01-09 20:55:40 +0100
commit5931d2530e9ab1b0fa0360602144d745b415ca42 (patch)
tree02d20ba3d4d90b4d63b197ca7c0dadc7e7cfd9b1 /src/systemd
parent1bb6b4458aa639e7dbea9fc9d6f666bdc7ea9612 (diff)
downloadvyos-1x-5931d2530e9ab1b0fa0360602144d745b415ca42.tar.gz
vyos-1x-5931d2530e9ab1b0fa0360602144d745b415ca42.zip
keepalived: T4128: add missing keepalived.service file
(cherry picked from commit 5a73c946000902f6e445b0803ca090f7fc6e0954)
Diffstat (limited to 'src/systemd')
-rw-r--r--src/systemd/keepalived.service13
1 files changed, 13 insertions, 0 deletions
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