Skip to content

Commit 76b94e9

Browse files
committed
Fix init script to run commands in bash
This should fix issues with RVM not being loaded. Closes #11
1 parent 7adc70f commit 76b94e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

init.d/gitlab

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ start() {
4242
exit 1
4343
else
4444
if [ `whoami` = root ]; then
45-
sudo -u gitlab -H sh -l -c "nohup bundle exec unicorn_rails $DAEMON_OPTS > /dev/null 2>&1 &"
46-
sudo -u gitlab -H sh -l -c "mkdir -p $PID_PATH && nohup bundle exec rake environment resque:work QUEUE=post_receive,mailer,system_hook RAILS_ENV=production PIDFILE=$RESQUE_PID > /dev/null 2>&1 &"
45+
sudo -u gitlab -H bash -l -c "nohup bundle exec unicorn_rails $DAEMON_OPTS > /dev/null 2>&1 &"
46+
sudo -u gitlab -H bash -l -c "mkdir -p $PID_PATH && nohup bundle exec rake environment resque:work QUEUE=post_receive,mailer,system_hook RAILS_ENV=production PIDFILE=$RESQUE_PID > /dev/null 2>&1 &"
4747
echo "$DESC started"
4848
fi
4949
fi

0 commit comments

Comments
 (0)