Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 536296 - dev-util/jenkins-bin - add systemd support
Summary: dev-util/jenkins-bin - add systemd support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Manuel Rüger (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: install-systemd-unit
  Show dependency tree
 
Reported: 2015-01-11 10:59 UTC by Matteo 'The Peach' Pescarin
Modified: 2015-06-01 15:15 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
jenkins.service (jenkins.service,519 bytes, text/plain)
2015-01-11 10:59 UTC, Matteo 'The Peach' Pescarin
Details
jenkins.service (jenkins.service,499 bytes, text/plain)
2015-02-07 16:01 UTC, Matteo 'The Peach' Pescarin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matteo 'The Peach' Pescarin 2015-01-11 10:59:46 UTC
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?
Comment 1 Manuel Rüger (RETIRED) gentoo-dev 2015-01-23 13:57:39 UTC
I don't use systemd and thus can't verify if the service file is correct.
@systemd Please review the attached file.
Comment 2 Mike Gilbert gentoo-dev 2015-01-23 14:31:54 UTC
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.
Comment 3 Matteo 'The Peach' Pescarin 2015-01-23 14:42:15 UTC
(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.
Comment 4 Matteo 'The Peach' Pescarin 2015-02-07 16:01:08 UTC
Created attachment 395798 [details]
jenkins.service

Updated service file.
Comment 5 Manuel Rüger (RETIRED) gentoo-dev 2015-06-01 15:15:34 UTC
*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.