one typo fix
    make passwd service exitable
This commit is contained in:
Anthony Xu 2012-09-25 13:57:15 -07:00
parent b59c3c8885
commit ddffdc9db7
2 changed files with 11 additions and 9 deletions

View File

@ -1,7 +1,8 @@
#!/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=$?
@ -10,4 +11,5 @@ do
logger -t cloud "Password server failed with error code $rc. Restarting socat..."
sleep 3
fi
result=`ip addr show | grep $ip`
done