• Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor Minor
    • component
    • None
    • 2.332.1, 2.335

      The jenkins.service file has Type=Forked - this should be Type=Simple
      Being forked prevents the service script from ending until timeout, and the system flags this as a failed startup - Interfers with monitoring, which attempts to restart the already running process.

          [JENKINS-68156] Service (systemd) change to type=simple

          Mark Waite added a comment -

          Can you provide more details about the location where you are seeing a Jenkins systemd service configured with Type=Forked?

          As noted in the install guide, the Jenkins 2.332.1 upgrade guide, and the blog post, the deb and rpm installers provided by the Jenkins project use a configuration like this:

          [Unit]
          Description=Jenkins Continuous Integration Server
          Requires=network.target
          After=network.target
          
          [Service]
          Type=notify
          NotifyAccess=main
          ExecStart=/usr/bin/jenkins
          Restart=on-failure
          SuccessExitStatus=143
          

          The Type is notify, not Forked.

          Mark Waite added a comment - Can you provide more details about the location where you are seeing a Jenkins systemd service configured with Type=Forked ? As noted in the install guide , the Jenkins 2.332.1 upgrade guide , and the blog post , the deb and rpm installers provided by the Jenkins project use a configuration like this: [Unit] Description=Jenkins Continuous Integration Server Requires=network.target After=network.target [Service] Type=notify NotifyAccess=main ExecStart=/usr/bin/jenkins Restart=on-failure SuccessExitStatus=143 The Type is notify , not Forked .

            praqma Praqma Support
            usersb07 Simon B.
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: