Commit 24e9c5e83e1b5b304aa0109e95bbd69a554f5e3f

Authored by Jacob Vosmaer
2 parents 78a7a9b0 058aae59

Merge branch 'bugfix/fix_unicorn-sidekiq_confusion_in_gitlab_init_script' into 'master'

Fix Unicorn-Sidekiq Confusion In GitLab Init Script

This merge request fixes issue #126 by updating a few sections of the included GitLab init file where Unicorn was referred to as Sidekiq and vice-versa.
Showing 1 changed file with 5 additions and 5 deletions   Show diff stats
lib/support/init.d/gitlab
@@ -131,7 +131,7 @@ check_stale_pids(){ @@ -131,7 +131,7 @@ check_stale_pids(){
131 fi 131 fi
132 fi 132 fi
133 if [ "$spid" != "0" -a "$sidekiq_status" != "0" ]; then 133 if [ "$spid" != "0" -a "$sidekiq_status" != "0" ]; then
134 - echo "Removing stale Sidekiq web server pid. This is most likely caused by the Sidekiq crashing the last time it ran." 134 + echo "Removing stale Sidekiq job dispatcher pid. This is most likely caused by Sidekiq crashing the last time it ran."
135 if ! rm "$sidekiq_pid_path"; then 135 if ! rm "$sidekiq_pid_path"; then
136 echo "Unable to remove stale pid, exiting" 136 echo "Unable to remove stale pid, exiting"
137 exit 1 137 exit 1
@@ -155,9 +155,9 @@ start() { @@ -155,9 +155,9 @@ start() {
155 if [ "$web_status" != "0" -a "$sidekiq_status" != "0" ]; then 155 if [ "$web_status" != "0" -a "$sidekiq_status" != "0" ]; then
156 echo -n "Starting both the GitLab Unicorn and Sidekiq" 156 echo -n "Starting both the GitLab Unicorn and Sidekiq"
157 elif [ "$web_status" != "0" ]; then 157 elif [ "$web_status" != "0" ]; then
158 - echo -n "Starting GitLab Sidekiq"  
159 - elif [ "$sidekiq_status" != "0" ]; then  
160 echo -n "Starting GitLab Unicorn" 158 echo -n "Starting GitLab Unicorn"
  159 + elif [ "$sidekiq_status" != "0" ]; then
  160 + echo -n "Starting GitLab Sidekiq"
161 fi 161 fi
162 162
163 # Then check if the service is running. If it is: don't start again. 163 # Then check if the service is running. If it is: don't start again.
@@ -190,9 +190,9 @@ stop() { @@ -190,9 +190,9 @@ stop() {
190 if [ "$web_status" = "0" -a "$sidekiq_status" = "0" ]; then 190 if [ "$web_status" = "0" -a "$sidekiq_status" = "0" ]; then
191 echo -n "Shutting down both Unicorn and Sidekiq" 191 echo -n "Shutting down both Unicorn and Sidekiq"
192 elif [ "$web_status" = "0" ]; then 192 elif [ "$web_status" = "0" ]; then
193 - echo -n "Shutting down Sidekiq"  
194 - elif [ "$sidekiq_status" = "0" ]; then  
195 echo -n "Shutting down Unicorn" 193 echo -n "Shutting down Unicorn"
  194 + elif [ "$sidekiq_status" = "0" ]; then
  195 + echo -n "Shutting down Sidekiq"
196 fi 196 fi
197 197
198 # If the Unicorn web server is running, tell it to stop; 198 # If the Unicorn web server is running, tell it to stop;