Skip to content

Commit b1d4621

Browse files
committed
Dont remove sidekiq pidfile
1 parent 06b29a7 commit b1d4621

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/sidekiq.pid"
22+
SIDEKIQ_PID="$PID_PATH/sidekiq.pid"
2323
STOP_SIDEKIQ="RAILS_ENV=production bundle exec rake sidekiq:stop"
2424
START_SIDEKIQ="RAILS_ENV=production bundle exec rake sidekiq:start"
2525
NAME="unicorn"
@@ -59,7 +59,6 @@ stop() {
5959
kill -QUIT `cat $UNICORN_PID`
6060
sudo -u gitlab -H bash -l -c "mkdir -p $PID_PATH && $STOP_SIDEKIQ > /dev/null 2>&1 &"
6161
rm "$UNICORN_PID" >> /dev/null
62-
rm "$RESQUE_PID" >> /dev/null
6362
echo "$DESC stopped"
6463
else
6564
## Program is not running, exit with error.
@@ -89,7 +88,8 @@ status() {
8988
cd $APP_ROOT
9089
check_pid
9190
if [ "$PID" -ne 0 -a "$STATUS" -ne 0 ]; then
92-
echo "$DESC with PID $PID is running."
91+
echo "$DESC / Unicorn with PID $PID is running."
92+
echo "$DESC / Sidekiq with PID $SIDEKIQ_PID is running."
9393
else
9494
echo "$DESC is not running."
9595
exit 1

0 commit comments

Comments
 (0)