Skip to content

Commit

Permalink
Added the option to configure ajp lintening port in rpm
Browse files Browse the repository at this point in the history
Originally-From: jenkins-ci.org/commit/core/29c2512feecca27b9a6c22eaf59681339e96018f
  • Loading branch information
AncientLeGrey authored and kohsuke committed Jun 7, 2011
1 parent f714817 commit 7908a9e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions SOURCES/jenkins.init.in
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ done
JAVA_CMD="$JENKINS_JAVA_CMD $JENKINS_JAVA_OPTIONS -DJENKINS_HOME=$JENKINS_HOME -jar $JENKINS_WAR"
PARAMS="--logfile=/var/log/jenkins/jenkins.log --daemon"
[ -n "$JENKINS_PORT" ] && PARAMS="$PARAMS --httpPort=$JENKINS_PORT"
[ -n "$JENKINS_AJP_PORT" ] && PARAMS="$PARAMS --ajp13Port=$JENKINS_AJP_PORT"
[ -n "$JENKINS_DEBUG_LEVEL" ] && PARAMS="$PARAMS --debug=$JENKINS_DEBUG_LEVEL"
[ -n "$JENKINS_HANDLER_STARTUP" ] && PARAMS="$PARAMS --handlerCountStartup=$JENKINS_HANDLER_STARTUP"
[ -n "$JENKINS_HANDLER_MAX" ] && PARAMS="$PARAMS --handlerCountMax=$JENKINS_HANDLER_MAX"
Expand Down
10 changes: 10 additions & 0 deletions SOURCES/jenkins.sysconfig.in
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,19 @@ JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true"
## ServiceRestart: jenkins
#
# Port Jenkins is listening on.
# Set to -1 to disable
#
JENKINS_PORT="8080"

## Type: integer(0:65535)
## Default: 8009
## ServiceRestart: jenkins
#
# Ajp13 Port Jenkins is listening on.
# Set to -1 to disable
#
JENKINS_AJP_PORT="8009"

## Type: integer(1:9)
## Default: 5
## ServiceRestart: jenkins
Expand Down

0 comments on commit 7908a9e

Please sign in to comment.