summaryrefslogtreecommitdiff
path: root/src/systemd/vyos-wan-load-balance.service
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-05-06 15:05:53 +0200
committerGitHub <noreply@github.com>2023-05-06 15:05:53 +0200
commitd4352bed66857a2e4f1b124abcf6cf1910621506 (patch)
tree60fdea95446880a882b862750368670deaf60d92 /src/systemd/vyos-wan-load-balance.service
parentf7fc3ea77e4b42aaf7968a42b2b42d070a31fbaa (diff)
parent454fcea2a3a08181aa9d8d84e1576379cf228c6f (diff)
downloadvyos-1x-d4352bed66857a2e4f1b124abcf6cf1910621506.tar.gz
vyos-1x-d4352bed66857a2e4f1b124abcf6cf1910621506.zip
Merge pull request #1980 from sever-sever/T5203
T5203: Add systemd vyos-wan-load-balance.service
Diffstat (limited to 'src/systemd/vyos-wan-load-balance.service')
-rw-r--r--src/systemd/vyos-wan-load-balance.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/systemd/vyos-wan-load-balance.service b/src/systemd/vyos-wan-load-balance.service
new file mode 100644
index 000000000..7d62a2ff6
--- /dev/null
+++ b/src/systemd/vyos-wan-load-balance.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=VyOS WAN load-balancing service
+After=vyos-router.service
+
+[Service]
+ExecStart=/opt/vyatta/sbin/wan_lb -f /run/load-balance/wlb.conf -d -i /var/run/vyatta/wlb.pid
+ExecReload=/bin/kill -s SIGTERM $MAINPID && sleep 5 && /opt/vyatta/sbin/wan_lb -f /run/load-balance/wlb.conf -d -i /var/run/vyatta/wlb.pid
+ExecStop=/bin/kill -s SIGTERM $MAINPID
+PIDFile=/var/run/vyatta/wlb.pid
+KillMode=process
+Restart=on-failure
+RestartSec=5s
+
+[Install]
+WantedBy=multi-user.target