summaryrefslogtreecommitdiff
path: root/src/systemd/vyos-wan-load-balance.service
blob: 7d62a2ff66b4a7213bfbfa2d491f00e8b193a658 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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