Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Systemd service file #55

Open
takluyver opened this issue Nov 15, 2016 · 0 comments
Open

Systemd service file #55

takluyver opened this issue Nov 15, 2016 · 0 comments

Comments

@takluyver
Copy link
Contributor

I had some trouble running Jenkins under Ubuntu 16.04 with systemd. This seems to have been resolved by creating a systemd service file at /etc/systemd/system/jenkins.service:

[Unit]
Description=Jenkins Daemon

[Service]
Environment="JENKINS_HOME=/var/lib/jenkins"
ExecStart=/usr/bin/java -jar /usr/share/jenkins/jenkins.war
User=jenkins

[Install]
WantedBy=multi-user.target

(This is cobbled together and there may well be some extra bits needed, but it seems to be working for me)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant