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

Starting Hudson execvp: No such file or directory on RHEL4

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Incomplete
    • core
    • cat /etc/redhat-release
      Red Hat Enterprise Linux ES release 4 (Nahant Update 7)

    Description

      There are two problems with the RPM package for RHEL4:
      1. The daemon binary expects a nicelevel to be given:
      I had to add this to /etc/init.d/hudson:

      NICELEVEL=0
      daemon $NICELEVEL --user "$HUDSON_USER" --pidfile "$HUDSON_PID_FILE" $JAVA_CMD $PARAMS

      2. Seems to use execvp:
      Starting Hudson execvp: No such file or directory

      Attachments

        Activity

          danielbeck Daniel Beck added a comment -

          No response to comment asking for additional information in several months, so resolving as incomplete.

          danielbeck Daniel Beck added a comment - No response to comment asking for additional information in several months, so resolving as incomplete.
          danielbeck Daniel Beck added a comment -

          david: To clarify, you had to remove the --pidfile option? What happened to the $NICELEVEL from the original report?

          Is this still an issue in recent versions of Jenkins installed from scratch? Do you still have this system to provide feedback?

          danielbeck Daniel Beck added a comment - david: To clarify, you had to remove the --pidfile option? What happened to the $NICELEVEL from the original report? Is this still an issue in recent versions of Jenkins installed from scratch? Do you still have this system to provide feedback?
          davidkarlsen davidkarlsen added a comment -

          I got it working by changing the init.d script, so that it looks like:
          daemon --user "$HUDSON_USER" $JAVA_CMD $PARAMS

          RHEL doesn't use the deaemon package like in debian, it uses a custom script in . /etc/init.d/functions
          which doesn't seem compatible for RHEL. Thus there should be packages specific for this distro.

          davidkarlsen davidkarlsen added a comment - I got it working by changing the init.d script, so that it looks like: daemon --user "$HUDSON_USER" $JAVA_CMD $PARAMS RHEL doesn't use the deaemon package like in debian, it uses a custom script in . /etc/init.d/functions which doesn't seem compatible for RHEL. Thus there should be packages specific for this distro.

          People

            Unassigned Unassigned
            davidkarlsen davidkarlsen
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: