Skip to content

Commit

Permalink
[dist] make not startable workers just a warning, it might be a serve…
Browse files Browse the repository at this point in the history
…r only...
  • Loading branch information
adrianschroeter committed Mar 22, 2012
1 parent 5eb6285 commit d99fb8f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions dist/obsstoragesetup
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ case "$1" in
echo "/obs already exists !"
exit 1
fi
ln -sf $backenddir /obs
[ -L /obs ] && rm /obs
ln -s $backenddir /obs
fi

# Only used if there is a local BSConfig
Expand Down Expand Up @@ -218,8 +219,8 @@ EOF
fi
fi
if [ ! "0$NUM" -gt 0 ]; then
echo "ERROR: OBS worker instances are 0, either misconfiguration or not enough resources"
exit 1
echo "WARNING: OBS worker instances are 0, either misconfiguration or not enough resources"
exit 0
fi

# Look for PV devices in OBS VG
Expand Down Expand Up @@ -315,6 +316,10 @@ EOF
mkfs -text4 /dev/OBS/cache || exit
fi

if [ ! "0$NUM" -gt 0 ]; then
exit 0
fi

echo "Looking for OBS Worker Cache LVM Volume"
if [ -e /dev/OBS/cache ]; then
mkdir -p $OBS_WORKER_DIRECTORY
Expand Down

0 comments on commit d99fb8f

Please sign in to comment.