summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-01-03 20:30:49 +0100
committerChristian Poessinger <christian@poessinger.com>2022-01-03 20:30:49 +0100
commit5a73c946000902f6e445b0803ca090f7fc6e0954 (patch)
treed9ec956091ed4154bd8e83b39474f020f87b5d1b /src
parent2a279f48e208b90c91eac5d6c5855e65cee39018 (diff)
downloadvyos-1x-5a73c946000902f6e445b0803ca090f7fc6e0954.tar.gz
vyos-1x-5a73c946000902f6e445b0803ca090f7fc6e0954.zip
keepalived: T4128: add missing keepalived.service file
Diffstat (limited to 'src')
-rw-r--r--src/systemd/keepalived.service (renamed from src/etc/systemd/system/keepalived.service.d/override.conf)11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/etc/systemd/system/keepalived.service.d/override.conf b/src/systemd/keepalived.service
index 1346962a4..a462d8614 100644
--- a/src/etc/systemd/system/keepalived.service.d/override.conf
+++ b/src/systemd/keepalived.service
@@ -1,14 +1,13 @@
[Unit]
-ConditionPathExists=
-ConditionPathExists=/run/keepalived/keepalived.conf
-After=
+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
-EnvironmentFile=
-ExecStart=
+# 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
-PIDFile=
+ExecReload=/bin/kill -HUP $MAINPID
PIDFile=/run/keepalived/keepalived.pid