github.com/swiftstack/proxyfs@v0.0.0-20201223034610-5434d919416e/saio/container/docker_startup.sh (about) 1 #!/bin/bash 2 3 mount /srv/1/node/sdb1 4 chown -R swift:swift /srv/1/node/sdb1 5 6 rsyslogd 7 8 memcached -u swift -d 9 10 swift-init main start 11 12 while true 13 do 14 curl http://127.0.0.1:8090/info 2>/dev/null >/dev/null 15 if [ $? -eq 0 ] 16 then 17 break 18 fi 19 echo "Waiting for Swift to be started..." 20 sleep 1 21 done 22 23 echo "Swift is up... starting ProxyFS..." 24 25 myPublicIPAddr=`ip addr | grep inet | grep eth0 | awk '{print $2}' | awk 'BEGIN {FS="/"} {print $1}'` 26 27 echo "myPublicIPAddr == $myPublicIPAddr" 28 29 proxyfsd proxyfs.conf Peer:Peer0.PublicIPAddr=$myPublicIPAddr