[X2Go-Commits] [x2goserver] 27/27: x2goserver/bin/x2gostartagent: check and adapt exit codes.
git-admin at x2go.org
git-admin at x2go.org
Wed Jan 10 00:18:00 CET 2018
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch release/4.0.1.x
in repository x2goserver.
commit 9cb67acff073728cbd2f57491c0ee04b7f6b5cad
Author: Mihai Moldovan <ionic at ionic.de>
Date: Tue Jan 9 05:56:51 2018 +0100
x2goserver/bin/x2gostartagent: check and adapt exit codes.
---
debian/changelog | 1 +
x2goserver/bin/x2gostartagent | 8 ++++----
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 342c7b6..60289a3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -78,6 +78,7 @@ x2goserver (4.0.1.23-0x2go1) UNRELEASED; urgency=medium
- x2goserver/bin/x2goresume-session: actually check if the old port values
have been refurbished within the system and reassign them.
- x2goserver/bin/x2goresume-ression: whitespace fix only.
+ - x2goserver/bin/x2gostartagent: check and adapt exit codes.
* x2goserver.spec:
- RPMify x2goserver-xsession description.
- Remove qt4 stuff, we're not using the framework here.
diff --git a/x2goserver/bin/x2gostartagent b/x2goserver/bin/x2gostartagent
index c4f05a8..5c6cf23 100755
--- a/x2goserver/bin/x2gostartagent
+++ b/x2goserver/bin/x2gostartagent
@@ -187,7 +187,7 @@ LWORD="$(awk '{print $1}' <<< "${LIMIT}")"
if [[ "${LWORD}" = 'LIMIT' ]]; then
echo "${LIMIT}" >&2
"${X2GO_LIB_PATH}/x2gosyslog" "${0}" 'err' "session limit has been reached for user "'"'"${USER}"'"'", cannot start new session"
- exit '10'
+ exit '9'
fi
export NX_CLIENT="${X2GO_LIB_PATH}/x2gosuspend-agent"
@@ -248,7 +248,7 @@ if [[ "${output}" != 'inserted' ]]; then
# Make x2goclient fail.
echo "${msg}" >&2
- exit '11'
+ exit '10'
fi
while [[ -z "${GR_PORT}" ]] || [[ -z "${SOUND_PORT}" ]] || [[ -z "${FS_PORT}" ]]; do
@@ -276,7 +276,7 @@ while [[ -z "${GR_PORT}" ]] || [[ -z "${SOUND_PORT}" ]] || [[ -z "${FS_PORT}" ]]
# Make x2goclient fail.
echo "${msg}" >&2
- exit '12'
+ exit '11'
fi
if [[ -z "${GR_PORT}" ]]; then
@@ -442,7 +442,7 @@ else
# run x2goserver-extensions for fail-start
x2gofeature 'X2GO_RUN_EXTENSIONS' &>'/dev/null' && x2goserver-run-extensions "${SESSION_NAME}" 'fail-start' || true
- exit '13'
+ exit '12'
fi
"${X2GO_LIB_PATH}/x2gocreatesession" "${X2GO_COOKIE}" "${X2GO_AGENT_PID}" "${X2GO_CLIENT}" "${GR_PORT}" "${SOUND_PORT}" "${FS_PORT}" "${SESSION_NAME}" >'/dev/null'
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goserver.git
More information about the x2go-commits
mailing list