Thanks for describing the problem and for your investigation. I've submitted https://github.com/jenkins-infra/jenkins.io/pull/4308 to update the documentation. Would love to have your approval of the pull request, since I don't have a Fedora 33 system available.
On Wednesday, April 28, 2021 at 5:53:58 AM UTC-6 Horst Kronstorfer wrote: > hi! > > in fact systemd recognizes jenkins as a legacy service when trying to > enable it ... (this step is missing in the documentation): > > # systemctl enable jenkins > jenkins.service is not a native service, redirecting to > systemd-sysv-install. > Executing: /usr/lib/systemd/systemd-sysv-install enable jenkins > Failed to execute /usr/lib/systemd/systemd-sysv-install: No such file or > directory > > systemd-sysv-install is part of package chkconfig, so after executing ... > > # dnf install chkconfig > # systemctl enable jenkins > # systemctl start jenkins > > ... it works! > > thx! > > regards > -h > > On Tuesday, April 27, 2021 at 9:16:42 AM UTC+2 [email protected] > wrote: > >> In Fedora terms, jenkins is a so called legacy service. It does not >> provide a service file, but an old style System V init script. >> That should be recognized by systemd, but for doing so, AFAIK it needs a >> package called initscripts. Maybe that one is missing >> on your system? >> >> Cheers >> -Fritz >> >> On 26.04.21 13:21, Horst Kronstorfer wrote: >> > hi! >> > >> > i have installed jenkins lts according to the installation instructions >> @ https://www.jenkins.io/doc/book/installing/linux/#fedora but when i >> try to start the service it fails: >> > >> > # systemctl start jenkins >> > Failed to start jenkins.service: Unit jenkins.service not found. >> > >> > as it turns out the rpm does not contain the jenkins.service file: >> > >> > # dnf repoquery --list jenkins >> > /etc/init.d/jenkins >> > /etc/logrotate.d/jenkins >> > /etc/sysconfig/jenkins >> > /etc/yum.repos.d/jenkins.repo >> > /usr/lib/jenkins >> > /usr/lib/jenkins/jenkins.war >> > /usr/sbin/rcjenkins >> > /var/cache/jenkins >> > /var/lib/jenkins >> > /var/log/jenkins >> > /etc/init.d/jenkins >> > /etc/logrotate.d/jenkins >> > /etc/sysconfig/jenkins >> > /etc/yum.repos.d/jenkins.repo >> > /usr/lib/jenkins >> > /usr/lib/jenkins/jenkins.war >> > /usr/sbin/rcjenkins >> > /var/lib/jenkins >> > /var/log/jenkins >> > /etc/init.d/jenkins >> > /etc/logrotate.d/jenkins >> > /etc/sysconfig/jenkins >> > /usr/lib/jenkins >> > /usr/lib/jenkins/jenkins.war >> > /usr/sbin/rcjenkins >> > /var/cache/jenkins >> > /var/lib/jenkins >> > /var/log/jenkins >> > >> > is this file missing or am i supposed to provide one myself? >> > >> > regards >> > -h >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups "Jenkins Users" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> an email to [email protected] <mailto: >> [email protected]>. >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-users/287def2b-92ff-4e46-a63e-f6bcceadfc9en%40googlegroups.com >> >> < >> https://groups.google.com/d/msgid/jenkinsci-users/287def2b-92ff-4e46-a63e-f6bcceadfc9en%40googlegroups.com?utm_medium=email&utm_source=footer>. >> >> >> >> -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/4dbdd339-1cc0-42d0-9694-d09744a13a2dn%40googlegroups.com.
