Currently debian packages (and presumably redhat/suse/etc) ship with old style SysV init.d file.
Most distributions are now systemd based, and to be able to make use of it's additional features it would be useful have /lib/systemd/system/jenkins.service file.
This would allow features like systemd's restart functionality to work (useful when Jenkins occasionally crashes, etc). See discussion around this here: http://serverfault.com/questions/760552/how-to-use-automatic-restart-with-jenkins-on-systemd
Details of how provide both systemd unit file and SysV init file are detailed here:
https://wiki.debian.org/Teams/pkg-systemd/Packaging
This should be applicable to all distro, and systemd unit most likely the same across them all, as it's much more standardised than each distros SysV init infrastructure.
https://github.com/jenkinsci/packaging
Originally reported by
nickbrown, imported from: Provide native systemd unit
- assignee: basil
- status: Closed
- priority: Critical
- component(s): packaging
- resolution: Fixed
- resolved: 2022-02-16T18:48:24+00:00
- votes: 14
- watchers: 27
- imported: 2025-11-26
Raw content of original issue
Currently debian packages (and presumably redhat/suse/etc) ship with old style SysV init.d file.
Most distributions are now systemd based, and to be able to make use of it's additional features it would be useful have /lib/systemd/system/jenkins.service file.
This would allow features like systemd's restart functionality to work (useful when Jenkins occasionally crashes, etc). See discussion around this here: http://serverfault.com/questions/760552/how-to-use-automatic-restart-with-jenkins-on-systemd
Details of how provide both systemd unit file and SysV init file are detailed here:
https://wiki.debian.org/Teams/pkg-systemd/Packaging
This should be applicable to all distro, and systemd unit most likely the same across them all, as it's much more standardised than each distros SysV init infrastructure.
https://github.com/jenkinsci/packaging
Currently debian packages (and presumably redhat/suse/etc) ship with old style SysV init.d file.
Most distributions are now systemd based, and to be able to make use of it's additional features it would be useful have /lib/systemd/system/jenkins.service file.
This would allow features like systemd's restart functionality to work (useful when Jenkins occasionally crashes, etc). See discussion around this here: http://serverfault.com/questions/760552/how-to-use-automatic-restart-with-jenkins-on-systemd
Details of how provide both systemd unit file and SysV init file are detailed here:
https://wiki.debian.org/Teams/pkg-systemd/Packaging
This should be applicable to all distro, and systemd unit most likely the same across them all, as it's much more standardised than each distros SysV init infrastructure.
https://github.com/jenkinsci/packaging
Originally reported by
nickbrown, imported from: Provide native systemd unit
Raw content of original issue