Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-67239

Install Jenkins using Yum. Use systemctl restart Jenkins exception

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Critical Critical
    • core
    • jenkins 2.322

       
      I have tested it for the following reasons:

          Because the daemon command and killproc command do not exist, the restart command does not take effect. It is recommended that the official increase the installation of these two commands during installation。

          [JENKINS-67239] Install Jenkins using Yum. Use systemctl restart Jenkins exception

          Mark Waite added a comment -

          Thanks for reporting an issue, but I'm unable to duplicate the issue that you're reporting.

          When I install Jenkins 2.303.3 on CentOS 8 using the instructions from https://pkg.jenkins.io/redhat-stable/ , the daemon program is not referenced. The daemonize program is part of the 'daemonize' package that is provided by the epel-release package. It is installed by the 'yum' package manager when I install the 'jenkins' package because the 'daemonize' package is a declared dependency of the 'jenkins' package.

          When I install Jenkins 2.303.3 on CentOS 8 using the instructions from https://pkg.jenkins.io/redhat-stable/ , the killproc function is part of /etc/rc.d/init.d/functions. The command

          systemctl restart jenkins

          correctly stops the Jenkins service and restarts it.

          When I install Jenkins 2.322 on CentOS 8, I see the same results as I see with Jenkins 2.303.3.

          I don't see any reference to the command 'daemon' in the files installed by the Jenkins rpm package on CentOS 8. There is a reference to the 'killproc' function, but that function is provided by the operating system init scripts.

          Can you provide more details about the environment where you are installing and the package that you used to perform the installation? For example, you said that you're installing with 'yum' but didn't mention the operating system where you're performing the installation.

          Mark Waite added a comment - Thanks for reporting an issue, but I'm unable to duplicate the issue that you're reporting. When I install Jenkins 2.303.3 on CentOS 8 using the instructions from https://pkg.jenkins.io/redhat-stable/ , the daemon program is not referenced. The daemonize program is part of the 'daemonize' package that is provided by the epel-release package. It is installed by the 'yum' package manager when I install the 'jenkins' package because the 'daemonize' package is a declared dependency of the 'jenkins' package. When I install Jenkins 2.303.3 on CentOS 8 using the instructions from https://pkg.jenkins.io/redhat-stable/ , the killproc function is part of /etc/rc.d/init.d/functions. The command systemctl restart jenkins correctly stops the Jenkins service and restarts it. When I install Jenkins 2.322 on CentOS 8, I see the same results as I see with Jenkins 2.303.3. I don't see any reference to the command 'daemon' in the files installed by the Jenkins rpm package on CentOS 8. There is a reference to the 'killproc' function, but that function is provided by the operating system init scripts. Can you provide more details about the environment where you are installing and the package that you used to perform the installation? For example, you said that you're installing with 'yum' but didn't mention the operating system where you're performing the installation.

          Mark Waite added a comment -

          Closing as "Cannot reproduce" after 4 days without a response from the submitter

          Mark Waite added a comment - Closing as "Cannot reproduce" after 4 days without a response from the submitter

            Unassigned Unassigned
            quguoliang2021 曲 国良
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: