Skip to content

Instantly share code, notes, and snippets.

@christ66
Forked from ganthore/jenkins.service
Created April 3, 2017 18:16
Show Gist options
  • Save christ66/2bea9ca5d9b99f1befaffea81205a7cf to your computer and use it in GitHub Desktop.
Save christ66/2bea9ca5d9b99f1befaffea81205a7cf to your computer and use it in GitHub Desktop.
/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]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment