bug 14558: Add log for passwd_server

In case something goes wrong.

Log located at /var/log/cloud.log
This commit is contained in:
Sheng Yang 2012-03-30 14:19:21 -07:00
parent 30dbea1ff7
commit be5b430a96
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ guestIp=$(ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}')
while [ "$ENABLED" == "1" ]
do
socat TCP4-LISTEN:8080,reuseaddr,crnl,bind=$guestIp SYSTEM:"/opt/cloud/bin/serve_password.sh \"\$SOCAT_PEERADDR\""
socat -lf /var/log/cloud.log TCP4-LISTEN:8080,reuseaddr,crnl,bind=$guestIp SYSTEM:"/opt/cloud/bin/serve_password.sh \"\$SOCAT_PEERADDR\""
rc=$?
if [ $rc -ne 0 ]