CS-16393

    one typo fix
    make passwd service exitable


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/ddffdc9d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/ddffdc9d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/ddffdc9d

Branch: refs/heads/master
Commit: ddffdc9db7402bab6519bbd0e7b3fb64c231ec6d
Parents: b59c3c8
Author: Anthony Xu <[email protected]>
Authored: Tue Sep 25 13:57:15 2012 -0700
Committer: Anthony Xu <[email protected]>
Committed: Wed Sep 26 17:42:42 2012 -0700

----------------------------------------------------------------------
 .../debian/config/opt/cloud/bin/vpc_guestnw.sh     |    2 +-
 .../debian/config/opt/cloud/bin/vpc_passwd_server  |   18 ++++++++------
 2 files changed, 11 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/ddffdc9d/patches/systemvm/debian/config/opt/cloud/bin/vpc_guestnw.sh
----------------------------------------------------------------------
diff --git a/patches/systemvm/debian/config/opt/cloud/bin/vpc_guestnw.sh 
b/patches/systemvm/debian/config/opt/cloud/bin/vpc_guestnw.sh
index fcd7e84..8f1e006 100755
--- a/patches/systemvm/debian/config/opt/cloud/bin/vpc_guestnw.sh
+++ b/patches/systemvm/debian/config/opt/cloud/bin/vpc_guestnw.sh
@@ -89,7 +89,7 @@ setup_dnsmasq() {
   echo "dhcp-option=tag:interface-$dev,15,$DOMAIN" >> /etc/dnsmasq.d/cloud.conf
   service dnsmasq restart
   sleep 1
-}
+} 
 
 desetup_dnsmasq() {
   logger -t cloud "Desetting up dnsmasq for network $ip/$mask "

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/ddffdc9d/patches/systemvm/debian/config/opt/cloud/bin/vpc_passwd_server
----------------------------------------------------------------------
diff --git a/patches/systemvm/debian/config/opt/cloud/bin/vpc_passwd_server 
b/patches/systemvm/debian/config/opt/cloud/bin/vpc_passwd_server
index 2b9deb1..2d6b4e6 100755
--- a/patches/systemvm/debian/config/opt/cloud/bin/vpc_passwd_server
+++ b/patches/systemvm/debian/config/opt/cloud/bin/vpc_passwd_server
@@ -1,13 +1,15 @@
 #!/bin/bash
 
 ip=$1
-while [ -n "$ip" ]
+result=$ip
+while [ -n "$result" ]
 do
-       socat -lf /var/log/cloud.log TCP4-LISTEN:8080,reuseaddr,crnl,bind=$ip 
SYSTEM:"/opt/cloud/bin/serve_password.sh"
-       rc=$?
-       if [ $rc -ne 0 ]
-       then
-               logger -t cloud "Password server failed with error code $rc. 
Restarting socat..."
-               sleep 3
-       fi
+    socat -lf /var/log/cloud.log TCP4-LISTEN:8080,reuseaddr,crnl,bind=$ip 
SYSTEM:"/opt/cloud/bin/serve_password.sh"
+    rc=$?
+    if [ $rc -ne 0 ]
+    then
+        logger -t cloud "Password server failed with error code $rc. 
Restarting socat..."
+        sleep 3
+    fi
+    result=`ip addr show | grep $ip`
 done

Reply via email to