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

Service (systemd) change to type=simple

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Duplicate
    • component
    • None
    • 2.332.1, 2.335

    Description

      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.

      Attachments

        Issue Links

          Activity

            markewaite 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.

            markewaite 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 .

            People

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

              Dates

                Created:
                Updated:
                Resolved: