diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-05-05 11:31:08 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-05-05 11:31:08 +0000 |
commit | ee025e34241a25b7b03055461a8bc2747afc56c2 (patch) | |
tree | 3bcb24e1aabfda166189dd9ffb890210cb820b24 /src/systemd | |
parent | 11e25707683138d4a5a64a3717160edb84816182 (diff) | |
download | vyos-1x-ee025e34241a25b7b03055461a8bc2747afc56c2.tar.gz vyos-1x-ee025e34241a25b7b03055461a8bc2747afc56c2.zip |
T5203: Add systemd vyos-wan-load-balance.service
Add 'vyos-wan-load-balance.service' systemd unit for
'loadbalancing wan' instead of old vyatta-wanloadbalance.init script
Diffstat (limited to 'src/systemd')
-rw-r--r-- | src/systemd/vyos-wan-load-balance.service | 15 |
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 |