Fix the `service gitlab restart` command
Created by: jacobvosmaer
This commit addresses two related issues:
- Sidekiq should shut down completely before we restart it;
- If we restart unicorn with USR2 we need to kill the old master and worker processes.
/cc @randx @jaypea
Merge request reports
Activity
Created by: jaypea
thanks for fixing this.
another issue is untouched by this is a call like
service gitlab stop && service gitlab start
this still would not work ;)By Administrator on 2013-08-23T08:52:31 (imported from GitLab project)
By Administrator on 2013-08-23T08:52:31 (imported from GitLab)
81 81 if [ "$PID" -ne 0 -a "$STATUS" -ne 0 ]; then 82 82 echo "Restarting $DESC..." 83 83 kill -USR2 `cat $WEB_SERVER_PID` 84 execute "mkdir -p $PID_PATH && $STOP_SIDEKIQ > /dev/null 2>&1 &" 84 execute "mkdir -p $PID_PATH && $STOP_SIDEKIQ > /dev/null 2>&1" 85 85 if [ `whoami` = root ]; then 86 86 execute "mkdir -p $PID_PATH && $START_SIDEKIQ > /dev/null 2>&1 &"
Please register or sign in to reply