> > http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/b59c3c88/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 > new file mode 100755 > index 0000000..2b9deb1 > --- /dev/null > +++ b/patches/systemvm/debian/config/opt/cloud/bin/vpc_passwd_server > @@ -0,0 +1,13 @@ > +#!/bin/bash > + > +ip=$1 > +while [ -n "$ip" ] > +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 > +done >
Anthony: Can you make sure the license header gets included in this bash script? It's causing the RAT build to fail. --David
