mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-14 04:22:16 +00:00
[FIXED JENKINS-24966] Return failure when port is in use
Both 0 and 1 are used to indicate some kind of success (the latter when Jenkins doesn't need to be started because it was already running), so we need to return 2.
This commit is contained in:
1 parent
c3d7e940d6
commit
2b6c00db34
1 file changed
+1
-1
Vendored
+1
-1
@@ -103,7 +103,7 @@ do_start()
|
||||
|
||||
# Verify that the jenkins port is not already in use, winstone does not exit
|
||||
# even for BindException
|
||||
check_tcp_port "http" "$HTTP_PORT" "8080" || return 1
|
||||
check_tcp_port "http" "$HTTP_PORT" "8080" || return 2
|
||||
|
||||
# If the var MAXOPENFILES is enabled in /etc/default/jenkins then set the max open files to the
|
||||
# proper value
|
||||
|
||||
Reference in new issue
Block a user