Skip to content
Permalink
Browse files

Fix not starting sidekiq process if "gitlab restart".

It needs to wait for completing STOP_SIDEKIQ before START_SIDEKIQ.
refs gitlabhq#52
  • Loading branch information...
hiroponz committed Apr 8, 2013
1 parent 6f6e011 commit 7f8dd74e119edf5ffa112bef86c729eb1226b3d2
Showing with 1 addition and 1 deletion.
  1. +1 −1 init.d/gitlab
@@ -74,7 +74,7 @@ restart() {
if [ "$PID" -ne 0 -a "$STATUS" -ne 0 ]; then
echo "Restarting $DESC..."
kill -USR2 `cat $WEB_SERVER_PID`
sudo -u git -H bash -l -c "mkdir -p $PID_PATH && $STOP_SIDEKIQ > /dev/null 2>&1 &"
sudo -u git -H bash -l -c "mkdir -p $PID_PATH && $STOP_SIDEKIQ > /dev/null 2>&1"
if [ `whoami` = root ]; then
sudo -u git -H bash -l -c "mkdir -p $PID_PATH && $START_SIDEKIQ > /dev/null 2>&1 &"
fi

0 comments on commit 7f8dd74

Please sign in to comment.
You can’t perform that action at this time.