@@ -26,8 +26,8 @@ APP_PATH=/home/$USER/gitlab
26
26
# The PID and LOCK files used by unicorn and sidekiq
27
27
UPID=$APP_PATH /tmp/pids/unicorn.pid
28
28
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
31
31
32
32
# The options to use when running unicorn
33
33
OPTS=" -c $APP_PATH /config/unicorn.rb -E production -D"
@@ -47,9 +47,9 @@ start() {
47
47
48
48
# Start sidekiq
49
49
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"
51
51
sidekiq=$?
52
- [ $sidekiq -eq 0 ] && touch $RLOCK
52
+ [ $sidekiq -eq 0 ] && touch $SLOCK
53
53
echo
54
54
55
55
retval=$unicorn || $sidekiq
@@ -68,9 +68,9 @@ stop() {
68
68
69
69
# Stop sidekiq
70
70
echo -n $" Stopping sidekiq: "
71
- killproc -p $RPID
71
+ killproc -p $SPID
72
72
sidekiq=$?
73
- [ $sidekiq -eq 0 ] && rm -f $RLOCK
73
+ [ $sidekiq -eq 0 ] && rm -f $SLOCK
74
74
echo
75
75
76
76
retval=$unicorn || $sidekiq
@@ -84,7 +84,7 @@ restart() {
84
84
85
85
get_status () {
86
86
status -p $UPID unicorn
87
- status -p $RPID sidekiq
87
+ status -p $SPID sidekiq
88
88
}
89
89
90
90
query_status () {
0 commit comments