Created
November 29, 2012 21:15
-
-
Save paulmooring/4171971 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APP_ROOT="/home/gitlab/gitlab" | |
DAEMON_OPTS="-c $APP_ROOT/config/unicorn.rb -E production" | |
PID_PATH="$APP_ROOT/tmp/pids" | |
UNICORN_PID="$PID_PATH/unicorn.pid" | |
RESQUE_PID="$PID_PATH/resque_worker.pid" | |
NAME="unicorn" | |
DESC="Gitlab service" | |
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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment