--- etc/rc.d/init.d/foreman 2010-11-19 09:44:54.000000000 +0100 +++ /etc/rc.d/init.d/foreman 2010-11-19 09:45:32.000000000 +0100 @@ -22,7 +22,7 @@ start() { echo -n $"Starting $prog: " - daemon --user ${FOREMAN_USER} /usr/bin/ruby ${FOREMAN_HOME}/script/server -p ${FOREMAN_PORT} -e ${FOREMAN_ENV} -d > /dev/null + daemon --user ${FOREMAN_USER} cd ${FOREMAN_HOME} && /usr/bin/ruby ${FOREMAN_HOME}/script/server -p ${FOREMAN_PORT} -e ${FOREMAN_ENV} -d > /dev/null RETVAL=$? if [ $RETVAL = 0 ] then