Mount LFS in synchronous mode.
Relates to
The change prevents possible race condition when worker tries to access shared folder before it was mounted.
Unfortunately the change removes lfs mount logs collection.
@@ -114,7 +114,7 @@ elif [ "$CP_CAP_SHARE_FS_TYPE" == "lfs" ]; then
fi
mkdir -p ${SHARED_PATH} && \
rm -rf ${SHARED_PATH}/* && \
- nohup mfsmount -f -H lizardfs-master ${MOUNT_OPTIONS} ${SHARED_PATH} > /var/log/mfsmount.out 2>&1 &
+ mfsmount -H lizardfs-master ${MOUNT_OPTIONS} ${SHARED_PATH}
if [ $? -ne 0 ]
then
