@@ -26,8 +26,8 @@ APP_PATH=/home/$USER/gitlab
2626# The PID and LOCK files used by unicorn and sidekiq
2727UPID=$APP_PATH /tmp/pids/unicorn.pid
2828ULOCK=/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
3333OPTS=" -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
8585get_status () {
8686 status -p $UPID unicorn
87- status -p $RPID sidekiq
87+ status -p $SPID sidekiq
8888}
8989
9090query_status () {
0 commit comments