Skip to content

Commit 245a726

Browse files
committed
Update init.d to use sidekiq
1 parent 740b5f2 commit 245a726

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

init.d/gitlab

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ APP_ROOT="/home/gitlab/gitlab"
1919
DAEMON_OPTS="-c $APP_ROOT/config/unicorn.rb -E production"
2020
PID_PATH="$APP_ROOT/tmp/pids"
2121
UNICORN_PID="$PID_PATH/unicorn.pid"
22-
RESQUE_PID="$PID_PATH/resque_worker.pid"
22+
RESQUE_PID="$PID_PATH/sidekiq.pid"
2323
NAME="unicorn"
2424
DESC="Gitlab service"
2525

@@ -43,7 +43,7 @@ start() {
4343
else
4444
if [ `whoami` = root ]; then
4545
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 &"
46+
sudo -u gitlab -H bash -l -c "mkdir -p $PID_PATH && RAILS_ENV=production bundle exec rake sidekiq:start > /dev/null 2>&1 &"
4747
echo "$DESC started"
4848
fi
4949
fi
@@ -74,7 +74,7 @@ restart() {
7474
kill -USR2 `cat $UNICORN_PID`
7575
kill -QUIT `cat $RESQUE_PID`
7676
if [ `whoami` = root ]; then
77-
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 &"
77+
sudo -u gitlab -H bash -l -c "RAILS_ENV=production bundle exec rake sidekiq:start > /dev/null 2>&1 &"
7878
fi
7979
echo "$DESC restarted."
8080
else

0 commit comments

Comments
 (0)