diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:57:42 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:57:42 +0100 |
commit | 1798c4aeca70ac8d0a243684d6a798fbc65735f8 (patch) | |
tree | e48e19cb6fa03de18e1c63e1a93371b7ebc4eb56 /dev-util/jenkins-bin/files | |
parent | d87262dd706fec50cd150aab3e93883b6337466d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-util/jenkins-bin/files')
-rw-r--r-- | dev-util/jenkins-bin/files/jenkins-bin-r1.logrotate | 17 | ||||
-rw-r--r-- | dev-util/jenkins-bin/files/jenkins-bin.confd | 62 | ||||
-rw-r--r-- | dev-util/jenkins-bin/files/jenkins-bin.init2 | 52 | ||||
-rw-r--r-- | dev-util/jenkins-bin/files/jenkins-bin.service | 10 |
4 files changed, 0 insertions, 141 deletions
diff --git a/dev-util/jenkins-bin/files/jenkins-bin-r1.logrotate b/dev-util/jenkins-bin/files/jenkins-bin-r1.logrotate deleted file mode 100644 index 33b16600452e..000000000000 --- a/dev-util/jenkins-bin/files/jenkins-bin-r1.logrotate +++ /dev/null @@ -1,17 +0,0 @@ -/var/log/jenkins/jenkins.log /var/log/jenkins/access_log { - compress - dateext - maxage 365 - rotate 99 - size=+4096k - notifempty - missingok - create 644 - postrotate - [ -r /etc/conf.d/jenkins ] && . /etc/conf.d/jenkins - if [ -s /var/run/jenkins.pid ]; then - JPID=$(cat /var/run/jenkins.pid) - test -n "$(find /proc/$JPID -maxdepth 0 -user ${RUN_AS:-jenkins} 2>/dev/null)" && kill -s ALRM $JPID || : - fi - endscript -} diff --git a/dev-util/jenkins-bin/files/jenkins-bin.confd b/dev-util/jenkins-bin/files/jenkins-bin.confd deleted file mode 100644 index f84e3463e359..000000000000 --- a/dev-util/jenkins-bin/files/jenkins-bin.confd +++ /dev/null @@ -1,62 +0,0 @@ -# Config file for /etc/init.d/jenkins - -# -# Directory where Jenkins store its configuration and working -# files (checkouts, build reports, artifacts, ...). -# -JENKINS_HOME="/var/lib/jenkins/home" - -# -# Options to pass to java when running Jenkins. -# -JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true" - -# -# Port Jenkins is listening on. -# -JENKINS_PORT="8080" - -# -# Debug level for logs -- the higher the value, the more verbose. -# 5 is INFO. -# -JENKINS_DEBUG_LEVEL="5" - -# -# Whether to enable access logging or not. -# -JENKINS_ENABLE_ACCESS_LOG="no" - -# -# Maximum number of HTTP worker threads. -# -JENKINS_HANDLER_MAX="100" - -# -# Maximum number of idle HTTP worker threads. -# -JENKINS_HANDLER_IDLE="20" - -# -# Pass arbitrary arguments to Jenkins. -# Eg.: --httpListenAddress=127.0.0.1 --prefix=/jenkins -# Full option list: java -jar jenkins.war --help -# -JENKINS_ARGS="" - -# -# User -# -JENKINS_USER=jenkins - - - -# -# Pid File -# -JENKINS_PIDFILE="/var/run/jenkins.pid" - -# -# War File -# -JENKINS_WAR="/opt/jenkins/jenkins.war" diff --git a/dev-util/jenkins-bin/files/jenkins-bin.init2 b/dev-util/jenkins-bin/files/jenkins-bin.init2 deleted file mode 100644 index 93d4d5f7e687..000000000000 --- a/dev-util/jenkins-bin/files/jenkins-bin.init2 +++ /dev/null @@ -1,52 +0,0 @@ -#!/sbin/openrc-run - -depend() { - need net - use dns logger mysql postgresql -} - -checkconfig() { - if [ ! -n "$JENKINS_HOME" ] ; then - eerror "JENKINS_HOME not configured" - return 1 - fi - if [ ! -d "$JENKINS_HOME" ] ; then - checkpath -q -d -o jenkins:jenkins -m 0755 "$JENKINS_HOME" || return 1 - fi - return 0 -} - -start() { - checkconfig || return 1 - - JAVA_HOME=`java-config --jre-home` - COMMAND=$JAVA_HOME/bin/java - - JAVA_PARAMS="$JENKINS_JAVA_OPTIONS -DJENKINS_HOME=$JENKINS_HOME -jar $JENKINS_WAR" - - # Don't use --daemon here, because in this case stop will not work - PARAMS="--logfile=/var/log/jenkins/jenkins.log" - [ -n "$JENKINS_PORT" ] && PARAMS="$PARAMS --httpPort=$JENKINS_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" - [ -n "$JENKINS_HANDLER_IDLE" ] && PARAMS="$PARAMS --handlerCountMaxIdle=$JENKINS_HANDLER_IDLE" - [ -n "$JENKINS_ARGS" ] && PARAMS="$PARAMS $JENKINS_ARGS" - - if [ "$JENKINS_ENABLE_ACCESS_LOG" = "yes" ]; then - PARAMS="$PARAMS --accessLoggerClassName=winstone.accesslog.SimpleAccessLogger --simpleAccessLogger.format=combined --simpleAccessLogger.file=/var/log/jenkins/access_log" - fi - - ebegin "Starting ${SVCNAME}" - start-stop-daemon --start --quiet --background \ - --make-pidfile --pidfile $JENKINS_PIDFILE \ - --user ${JENKINS_USER} \ - --exec "${COMMAND}" -- $JAVA_PARAMS $PARAMS - eend $? -} - -stop() { - ebegin "Stopping ${SVCNAME}" - start-stop-daemon --stop --quiet --pidfile $JENKINS_PIDFILE - eend $? -} diff --git a/dev-util/jenkins-bin/files/jenkins-bin.service b/dev-util/jenkins-bin/files/jenkins-bin.service deleted file mode 100644 index 5edaac7da40a..000000000000 --- a/dev-util/jenkins-bin/files/jenkins-bin.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=Jenkins Daemon - -[Service] -Type=forking -ExecStart=/usr/bin/java -Djava.awt.headless=true -DJENKINS_HOME=/var/lib/jenkins/home -jar /opt/jenkins/jenkins.war --daemon --logfile=/var/log/jenkins/jenkins.log --httpPort=8080 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20 --accessLoggerClassName=winstone.accesslog.SimpleAccessLogger --simpleAccessLogger.format=combined --simpleAccessLogger.file=/var/log/jenkins/access_log -User=jenkins - -[Install] -WantedBy=multi-user.target |