summaryrefslogtreecommitdiff
path: root/src/etc
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-03-11 20:41:52 +0100
committerChristian Breunig <christian@breunig.cc>2023-03-11 20:41:52 +0100
commitd59af7458f481a9760cad1228cfd4ed255496683 (patch)
treed4807e9608b59d46c8919ffaa4394a4431326083 /src/etc
parentfa645fef28ca90dc5bd85d3a221964249843a24e (diff)
downloadvyos-1x-d59af7458f481a9760cad1228cfd4ed255496683.tar.gz
vyos-1x-d59af7458f481a9760cad1228cfd4ed255496683.zip
keepalived: T5003: move to Debian upstream version
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/systemd/system/keepalived.service.d/override.conf13
1 files changed, 13 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
new file mode 100644
index 000000000..923e1d280
--- /dev/null
+++ b/src/etc/systemd/system/keepalived.service.d/override.conf
@@ -0,0 +1,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