Created attachment 393676 [details] jenkins.service the current ebuilds for jenkins-bin do not come with any .service file to be used to start the service. I've attached the one I'm using, where the StartExec string is taken from the current init.d startup script. The official documentation talks about a jenkins.helper which is not present in the build installation https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+as+a+Unix+daemon#InstallingJenkinsasaUnixdaemon-Linuxservicesystemd I was also wondering if it might require a specific script to pull in the configuration dynamically?
I don't use systemd and thus can't verify if the service file is correct. @systemd Please review the attached file.
Drop the After=syslog.target. That is obsolete with modern versions of systemd. Otherwise, it looks fine. I'm a little skeptical of the many options being passed to java, but I don't use the software and don't know what they do.
(In reply to Mike Gilbert from comment #2) > Drop the After=syslog.target. That is obsolete with modern versions of > systemd. Otherwise, it looks fine. Hi Mike, thanks for the suggestion, didn't know that.. I believe I've taken it from the systemd script example on Jenkins website which is possibly out-of-date. > I'm a little skeptical of the many options being passed to java, but I don't > use the software and don't know what they do. I've taken the options from the init.d script that is currently provided by the ebuild, so I'm not sure either are all necessary, unless that's a cross-compatibility requirement built over the year. Not an expert on Java as well to be able to have an opinion on that.
Created attachment 395798 [details] jenkins.service Updated service file.
*jenkins-bin-1.616 (01 Jun 2015) *jenkins-bin-1.596.3-r1 (01 Jun 2015) 01 Jun 2015; Manuel Rüger <mrueg@gentoo.org> +files/jenkins-bin.service, +jenkins-bin-1.596.3-r1.ebuild, +jenkins-bin-1.616.ebuild, -files/jenkins-bin.logrotate, -jenkins-bin-1.596.3.ebuild, -jenkins-bin-1.612.ebuild: Version bump. Add systemd unit file. Fixes bug #536296.