Skip to content

Commit d833eea

Browse files
committed
change RLOCK,RPID to SLOCK,SPID as @misilot recommend
1 parent 020b5b7 commit d833eea

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

init.d/gitlab-centos

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ APP_PATH=/home/$USER/gitlab
2626
# The PID and LOCK files used by unicorn and sidekiq
2727
UPID=$APP_PATH/tmp/pids/unicorn.pid
2828
ULOCK=/var/lock/subsys/unicorn
29-
RPID=$APP_PATH/tmp/pids/sidekiq.pid
30-
RLOCK=/var/lock/subsys/sidekiq
29+
SPID=$APP_PATH/tmp/pids/sidekiq.pid
30+
SLOCK=/var/lock/subsys/sidekiq
3131

3232
# The options to use when running unicorn
3333
OPTS="-c $APP_PATH/config/unicorn.rb -E production -D"
@@ -47,9 +47,9 @@ start() {
4747

4848
# Start sidekiq
4949
echo -n $"Starting sidekiq: "
50-
daemon --pidfile=$RPID --user=$USER "$RUBY_PATH_PATCH RAILS_ENV=production bundle exec rake sidekiq:start"
50+
daemon --pidfile=$SPID --user=$USER "$RUBY_PATH_PATCH RAILS_ENV=production bundle exec rake sidekiq:start"
5151
sidekiq=$?
52-
[ $sidekiq -eq 0 ] && touch $RLOCK
52+
[ $sidekiq -eq 0 ] && touch $SLOCK
5353
echo
5454

5555
retval=$unicorn || $sidekiq
@@ -68,9 +68,9 @@ stop() {
6868

6969
# Stop sidekiq
7070
echo -n $"Stopping sidekiq: "
71-
killproc -p $RPID
71+
killproc -p $SPID
7272
sidekiq=$?
73-
[ $sidekiq -eq 0 ] && rm -f $RLOCK
73+
[ $sidekiq -eq 0 ] && rm -f $SLOCK
7474
echo
7575

7676
retval=$unicorn || $sidekiq
@@ -84,7 +84,7 @@ restart() {
8484

8585
get_status() {
8686
status -p $UPID unicorn
87-
status -p $RPID sidekiq
87+
status -p $SPID sidekiq
8888
}
8989

9090
query_status() {

0 commit comments

Comments
 (0)