Check if the java process is running.

This commit is contained in:
Andrea Dell'Amico 2022-04-02 03:01:45 +02:00
parent 520a04b81d
commit e90cceb7e8
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 10 additions and 2 deletions

View File

@ -38,9 +38,17 @@ if [ -d /home/${USER}/workspace ]; then
fi
fi
ln -sf $workspace_dir /home/${USER}/workspace
echo "Mount the workspace"
su - "$USER" -c "/usr/bin/java -cp .:${workspace_dir}:${workspace_logdir}/ -Dlogback.configurationFile=${workspace_logdir}/logback.xml -jar $workspace_fuse_jar $SHINYPROXY_OIDC_ACCESS_TOKEN $workspace_dir" >/dev/null 2>&1 &
exit $?
_retval=
_fuse_process=$(ps auwwx | grep fuse | grep java)
_retval=$?
if [ $_retval -ne 0 ]; then
echo "The mount of the workspace failed"
exit 1
fi
ln -sf $workspace_dir /home/${USER}/workspace
exit 0