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/0ee74897-f7da-4ec2-846d-563159a346b7n%40googlegroups.com.
