File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ APP_ROOT="/home/gitlab/gitlab"
1919DAEMON_OPTS=" -c $APP_ROOT /config/unicorn.rb -E production"
2020PID_PATH=" $APP_ROOT /tmp/pids"
2121UNICORN_PID=" $PID_PATH /unicorn.pid"
22- RESQUE_PID=" $PID_PATH /resque_worker .pid"
22+ RESQUE_PID=" $PID_PATH /sidekiq .pid"
2323NAME=" unicorn"
2424DESC=" 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
You can’t perform that action at this time.
0 commit comments