Actions
Bug #1569
closedInit-Script for RHEL doesnt work
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Description
The Init-RC Script for RHEL on RHEL6 doesnt work if you are not in the foreman-home.
If you run /etc/init.d/foreman start from outside of the foreman home you get the error
configuration /config.ru not found
Here is a possible fix for this (maybe someone has a better idea):
--- /opt/foreman/foreman/extras/spec/foreman.init 2012-03-28 14:04:35.828489612 +0100 +++ /etc/init.d/foreman 2012-04-10 05:57:11.827524267 +0100 @@ -23,6 +23,7 @@ start() { echo -n $"Starting $prog: " + cd $FOREMAN_HOME daemon --user ${FOREMAN_USER} /usr/bin/ruby ${FOREMAN_HOME}/script/rails s -p ${FOREMAN_PORT} -e ${FOREMAN_ENV} -d > /dev/null RETVAL=$? if [ $RETVAL = 0 ]
Actions