Skip to content

Instantly share code, notes, and snippets.

View ganthore's full-sized avatar

Mark Austin ganthore

View GitHub Profile
@ganthore
ganthore / jenkins-slave.conf
Created August 18, 2015 19:38
Copy jenkins-slave.init to /etc/init.d/jenkins-slave
JENKINS_WORKDIR="/opt/jenkins-slave"
JENKINS_USER="jenkins-slave"
JENKINS_URL="http://127.0.0.1:8080"
JENKINS_NODENAME="slave_name"
@ganthore
ganthore / README
Last active February 4, 2022 17:03
See README below.
INSTALLATION
Copy jenkins-slave.init to /etc/init.d/jenkins-slave and copy jenkins-slave to /etc/sysconfig/jenkins-slave.
cp jenkins-slave.init /etc/init.d/jenkins-slave
cp jenkins-slave /etc/sysconfig/jenkins-slave
chkconfig jenkins-slave on
service jenkins-slave start
Change the values of /etc/sysconfig/jenkins-slave to match your environment needs.
@ganthore
ganthore / jenkins.service
Created April 3, 2017 18:14
/usr/lib/systemd/system/jenkins.service
[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
Restart=always
[Install]