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
[JENKINS-5652] Starting Hudson execvp: No such file or directory on RHEL4
Component/s | New: core [ 15593 ] | |
Component/s | Original: other [ 15490 ] | |
Labels | New: rpm |
Resolution | New: Incomplete [ 4 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Workflow | Original: JNJira [ 135744 ] | New: JNJira + In-Review [ 187031 ] |
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.