-
Improvement
-
Resolution: Fixed
-
Critical
-
None
-
-
2.335, 2.332.1
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.
- is related to
-
JENKINS-65809 Jenkins fails to restart after plugin updates on Debian 11 (bullseye)
-
- Closed
-
-
JENKINS-67404 Jenkins Debian/Ubuntu Start Timeout Failure Mode
-
- Closed
-
- relates to
-
JENKINS-68156 Service (systemd) change to type=simple
-
- Closed
-
-
JENKINS-67405 Newbie Friendly Setup Improvement jenkinsci/packaging
-
- Resolved
-
- links to
I've tested packaging PR 266 and found no issues. The transition is looking good to me.
I've tested in Debian 10, Debian 11, and Red Hat Enterprise Linux 8. I won't be testing in a System V init environment like Devuan. Others will need to do that testing. wwuck, are you available to test the latest build of PR 266 in one of your Devuan environments?