Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian QA
jenkins.debian.net
Commits
56dfb70b
Unverified
Commit
56dfb70b
authored
Nov 02, 2016
by
Holger Levsen
Browse files
update to initscript from jenkins 2.19.2, keep our modifications to store HeapDumps
parent
bb7929db
Changes
1
Hide whitespace changes
Inline
Side-by-side
hosts/jenkins/etc/init.d/jenkins
View file @
56dfb70b
...
...
@@ -71,18 +71,26 @@ check_tcp_port() {
local
service
=
$1
local
assigned
=
$2
local
default
=
$3
local
assigned_address
=
$4
local
default_address
=
$5
if
[
-n
"
$assigned
"
]
;
then
if
[
-n
"
$assigned
"
]
;
then
port
=
$assigned
else
port
=
$default
fi
count
=
`
netstat
--listen
--numeric-ports
|
grep
\:
$port
[[
:space:]] |
grep
-c
.
`
if
[
-n
"
$assigned_address
"
]
;
then
address
=
$assigned_address
else
address
=
$default_address
fi
count
=
`
netstat
--listen
--numeric-ports
|
grep
$address
\:
$port
[[
:space:]] |
grep
-c
.
`
if
[
$count
-ne
0
]
;
then
echo
"The selected
$service
port (
$port
) seems to be in use by another program "
echo
"Please select another
port
to use for
$NAME
"
echo
"The selected
$service
port (
$port
)
on address
$address
seems to be in use by another program "
echo
"Please select another
address/port combination
to use for
$NAME
"
return
1
fi
}
...
...
@@ -108,7 +116,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
2
check_tcp_port
"http"
"
$HTTP_PORT
"
"8080"
"
$HTTP_HOST
"
"0.0.0.0"
||
return
2
# If the var MAXOPENFILES is enabled in /etc/default/jenkins then set the max open files to the
# proper value
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment