summaryrefslogtreecommitdiff
path: root/src/etc/systemd/system
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-09-21 20:29:36 +0200
committerChristian Poessinger <christian@poessinger.com>2021-09-21 20:18:54 +0000
commit65398e5c8aedf2f206bb706e97aa828e409d07b3 (patch)
tree648ce98ae0d30b3576bbd289d2a35230e5441c45 /src/etc/systemd/system
parent259e0458ff89b88493f98a5730c4fc91ff9da10f (diff)
downloadvyos-1x-65398e5c8aedf2f206bb706e97aa828e409d07b3.tar.gz
vyos-1x-65398e5c8aedf2f206bb706e97aa828e409d07b3.zip
vrrp: keepalived: T616: move configuration to volatile /run directory
Move keepalived configuration from /etc/keepalived to /run/keepalived. (cherry picked from commit b243795eba1b36cadd81c3149e833bdf5c5bea70)
Diffstat (limited to 'src/etc/systemd/system')
-rw-r--r--src/etc/systemd/system/keepalived.service.d/override.conf10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/etc/systemd/system/keepalived.service.d/override.conf b/src/etc/systemd/system/keepalived.service.d/override.conf
index 9fcabf652..e338b90a2 100644
--- a/src/etc/systemd/system/keepalived.service.d/override.conf
+++ b/src/etc/systemd/system/keepalived.service.d/override.conf
@@ -1,2 +1,12 @@
+[Unit]
+ConditionPathExists=
+ConditionPathExists=/run/keepalived/keepalived.conf
+After=
+After=vyos-router.service
+
[Service]
KillMode=process
+ExecStart=
+ExecStart=/usr/sbin/keepalived --use-file /run/keepalived/keepalived.conf --pid /run/keepalived/keepalived.pid --dont-fork $DAEMON_ARGS
+PIDFile=
+PIDFile=/run/keepalived/keepalived.pid