Skip to content

Instantly share code, notes, and snippets.

@karnauskas
Created October 13, 2014 21:45
Show Gist options
  • Save karnauskas/aca138bb8338689a178e to your computer and use it in GitHub Desktop.
Save karnauskas/aca138bb8338689a178e to your computer and use it in GitHub Desktop.
Jenkins service unit file for Systemd
[Unit]
Description=Jenkins
After=network.target
Requires=network.target
[Service]
Type=simple
EnvironmentFile=/etc/sysconfig/jenkins
ExecStart=/usr/bin/java ${JENKINS_JAVA_OPTIONS} -jar /usr/lib/jenkins/jenkins.war --httpPort=${JENKINS_PORT} --httpListenAddress=${JENKINS_LISTEN_ADDRESS} ${JENKINS_ARGS}
Restart=always
User=jenkins
RestartSec=20
[Install]
WantedBy=multi-user.target
@csaltos
Copy link

csaltos commented Feb 2, 2022

Buenísimo !! 👍😎

@arturocandela
Copy link

Me ha servido mucho, gracias

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment