Project

General

Profile

Actions

Bug #1569

closed

Init-Script for RHEL doesnt work

Added by David M. about 12 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
trivial
Triaged:
Fixed in Releases:
Found in Releases:

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 #1

Updated by Ohad Levy almost 12 years ago

  • Category set to Packaging
  • Difficulty set to trivial
  • Assignee set to Anonymous
Actions #2

Updated by Ohad Levy almost 12 years ago

  • Project changed from Foreman to Packaging
  • Category deleted (Packaging)
  • Target version deleted (1.0)
Actions #3

Updated by Sam Kottler over 11 years ago

  • Status changed from New to Closed

I spoke to Jason a few weeks ago about this and it should be resolved. Please re-open the issue if you're still running into problems.

Actions

Also available in: Atom PDF