Commit 64491d70 authored by Elvin Sindrilaru's avatar Elvin Sindrilaru
Browse files

Add sleep after starting the FST daemon and before registering it with the MGM

parent c4d4fda7
......@@ -35,7 +35,7 @@ while getopts 'u:d:s:c:g:' flag; do
c) CONFIG="${OPTARG}" ;;
g) GEOTAG="${OPTARG}" ;;
*) usage
exit 1;;
exit 1;;
......@@ -45,7 +45,7 @@ done
source /etc/sysconfig/eos
export EOS_MGM_URL=root://
if [ -e /opt/eos/xrootd/bin/xrootd ]; then
if [ -e /opt/eos/xrootd/bin/xrootd ]; then
......@@ -54,12 +54,13 @@ fi
echo "Starting fst${id} ..."
${XROOTDEXE} -n fst${id} -c /etc/ -l /var/log/eos/xrdlog.fst -b -Rdaemon
echo "Configuring fst${id} ..."
echo "Configuration start for fst${id} ..."
mkdir -p $DATADIR
echo "$UUID" > $DATADIR/.eosfsuuid
echo "${id}" > $DATADIR/.eosfsid
chown -R daemon:daemon $DATADIR
# Give some time to the FST to start and then register with the MGM
sleep 1
eos -b fs add -m ${id} $UUID $FSTHOSTNAME:1095 $DATADIR $SPACE $CONFIG
eos -b node set $FSTHOSTNAME:1095 on
echo "Configuration done for fst${id}"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment