diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/load-balancing/wan/node.def | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/load-balancing/wan/node.def b/templates/load-balancing/wan/node.def index 5d4b761..523dd73 100644 --- a/templates/load-balancing/wan/node.def +++ b/templates/load-balancing/wan/node.def @@ -1,4 +1,6 @@ help: Configure Wide Area Network (WAN) load-balancing -end:expression: exec "sudo ${vyatta_sbindir}/vyatta-wanloadbalance.pl" +end: if [ ${COMMIT_ACTION} != 'DELETE' ]; then + sudo ${vyatta_sbindir}/vyatta-wanloadbalance.pl; + fi; delete:expression: exec "sudo /etc/init.d/vyatta-wanloadbalance stop;sudo rm -f /var/load-balance/wlb.out" |