summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2010-07-20 14:17:26 -0700
committerMohit Mehta <mohit.mehta@vyatta.com>2010-07-20 14:17:26 -0700
commit13459f0a7b43fa0176d191f3f0e0bce0cd02190e (patch)
tree22487d8c7eea7d7e76a2924f024d04fd6298624a
parent6487dc1a1fb7f94ffa024573cc11acbfea1de53f (diff)
downloadvyatta-wanloadbalance-13459f0a7b43fa0176d191f3f0e0bce0cd02190e.tar.gz
vyatta-wanloadbalance-13459f0a7b43fa0176d191f3f0e0bce0cd02190e.zip
part of fix for BZ 5839 - move clear process cmds under restart
-rw-r--r--debian/vyatta-wanloadbalance.postinst.in6
-rw-r--r--templates/clear/wan-load-balance/node.def2
-rw-r--r--templates/restart/wan-load-balance/node.def (renamed from templates/clear/wan-load-balance/process/node.def)6
3 files changed, 6 insertions, 8 deletions
diff --git a/debian/vyatta-wanloadbalance.postinst.in b/debian/vyatta-wanloadbalance.postinst.in
index b2ee583..fb0eea8 100644
--- a/debian/vyatta-wanloadbalance.postinst.in
+++ b/debian/vyatta-wanloadbalance.postinst.in
@@ -14,7 +14,7 @@ touch ${LOADBALANCE_DIR}/wlb.conf
rm -fr /opt/vyatta/share/vyatta-op/templates/show/wan-load-balance/*
mv /opt/vyatta/share/vyatta-cfg/templates/show/wan-load-balance /opt/vyatta/share/vyatta-op/templates/show/. 2>/dev/null
rm -fr /opt/vyatta/share/vyatta-cfg/templates/show
-rm -fr /opt/vyatta/share/vyatta-op/templates/clear/wan-load-balance/*
-mv /opt/vyatta/share/vyatta-cfg/templates/clear/wan-load-balance /opt/vyatta/share/vyatta-op/templates/clear/. 2>/dev/null
-rm -fr /opt/vyatta/share/vyatta-cfg/templates/clear
+rm -fr /opt/vyatta/share/vyatta-op/templates/restart/wan-load-balance/*
+mv /opt/vyatta/share/vyatta-cfg/templates/restart/wan-load-balance /opt/vyatta/share/vyatta-op/templates/restart/. 2>/dev/null
+rm -fr /opt/vyatta/share/vyatta-cfg/templates/restart
exit 0
diff --git a/templates/clear/wan-load-balance/node.def b/templates/clear/wan-load-balance/node.def
deleted file mode 100644
index fbe5181..0000000
--- a/templates/clear/wan-load-balance/node.def
+++ /dev/null
@@ -1,2 +0,0 @@
-help: Restart wan-load-balance process
-
diff --git a/templates/clear/wan-load-balance/process/node.def b/templates/restart/wan-load-balance/node.def
index d541b8b..af6b1f6 100644
--- a/templates/clear/wan-load-balance/process/node.def
+++ b/templates/restart/wan-load-balance/node.def
@@ -1,6 +1,6 @@
-help: Restart wan-load-balance process
-run: if [ -f /var/load-balance/wlb.out ] ; then
+help: Restart WAN load balancing
+run: if [ -f /var/load-balance/wlb.out ] ; then
sudo /opt/vyatta/sbin/vyatta-wanloadbalance.init restart /var/load-balance/wlb.conf 2>/dev/null
else
echo WAN load balancing is not configured
- fi
+ fi \ No newline at end of file