summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-12-17 08:11:26 +0100
committerGitHub <noreply@github.com>2022-12-17 08:11:26 +0100
commitc44cd46619ba8e765ad312cc2710fa3ea04f21ae (patch)
tree6e84dad0c08c49ab95b89359ea4e9327772b3e52 /data
parent28c7960b6cc9bb05fafb0f2b8659b169b13c0071 (diff)
parent932af7f098808009f626c788deb9e1d1c8bf3426 (diff)
downloadvyos-1x-c44cd46619ba8e765ad312cc2710fa3ea04f21ae.tar.gz
vyos-1x-c44cd46619ba8e765ad312cc2710fa3ea04f21ae.zip
Merge pull request #1358 from sever-sever/T1237
routing: T1237: Add new feature failover route
Diffstat (limited to 'data')
-rw-r--r--data/templates/protocols/systemd_vyos_failover_service.j211
1 files changed, 11 insertions, 0 deletions
diff --git a/data/templates/protocols/systemd_vyos_failover_service.j2 b/data/templates/protocols/systemd_vyos_failover_service.j2
new file mode 100644
index 000000000..e6501e0f5
--- /dev/null
+++ b/data/templates/protocols/systemd_vyos_failover_service.j2
@@ -0,0 +1,11 @@
+[Unit]
+Description=Failover route service
+After=vyos-router.service
+
+[Service]
+Type=simple
+Restart=always
+ExecStart=/usr/bin/python3 /usr/libexec/vyos/vyos-failover.py --config /run/vyos-failover.conf
+
+[Install]
+WantedBy=multi-user.target