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"
19
19
DAEMON_OPTS=" -c $APP_ROOT /config/unicorn.rb -E production"
20
20
PID_PATH=" $APP_ROOT /tmp/pids"
21
21
UNICORN_PID=" $PID_PATH /unicorn.pid"
22
- RESQUE_PID=" $PID_PATH /resque_worker .pid"
22
+ RESQUE_PID=" $PID_PATH /sidekiq .pid"
23
23
NAME=" unicorn"
24
24
DESC=" Gitlab service"
25
25
@@ -43,7 +43,7 @@ start() {
43
43
else
44
44
if [ ` whoami` = root ]; then
45
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 &"
46
+ sudo -u gitlab -H bash -l -c " mkdir -p $PID_PATH && RAILS_ENV=production bundle exec rake sidekiq:start > /dev/null 2>&1 &"
47
47
echo " $DESC started"
48
48
fi
49
49
fi
@@ -74,7 +74,7 @@ restart() {
74
74
kill -USR2 ` cat $UNICORN_PID `
75
75
kill -QUIT ` cat $RESQUE_PID `
76
76
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 &"
78
78
fi
79
79
echo " $DESC restarted."
80
80
else
You can’t perform that action at this time.
0 commit comments