Message ID | 20130207.122721.55387722.yasu@soe.ucsc.edu (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
--- etc-init.d-ceph.bak 2013-02-05 16:05:56.246138380 -0800 +++ 2013-02-05-ceph-sysvinit/etc-init.d-ceph 2013-02-05 16:07:30.586927312 -0800 @@ -34,6 +34,17 @@ exit } +waitsec=5 +while [ `hostname -s` = "localhost" ]; do + echo "$0: hostname not yet, sleeping $waitsec seconds." + sleep "$waitsec" + waitsec=`expr $waitsec \* 2` + if [ $waitsec -gt 30 ]; then + echo "$0: hostname not yet, give up." + exit + fi +done + . $LIBDIR/ceph_common.sh EXIT_STATUS=0