Check if the java process is running.
This commit is contained in:
parent
520a04b81d
commit
e90cceb7e8
|
@ -38,9 +38,17 @@ if [ -d /home/${USER}/workspace ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ln -sf $workspace_dir /home/${USER}/workspace
|
|
||||||
|
|
||||||
echo "Mount the 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 &
|
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
|
||||||
|
|
Loading…
Reference in New Issue