Skip to content

Instantly share code, notes, and snippets.

@ganthore
Created April 3, 2017 18:14
Show Gist options
  • Save ganthore/e9dd65a4d5b31afb312032afdfbb4db6 to your computer and use it in GitHub Desktop.
Save ganthore/e9dd65a4d5b31afb312032afdfbb4db6 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