Skip to content
Snippets Groups Projects
Commit 503eb80c authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Merge branch 'master' of github.com:gitlabhq/gitlab-ci

parents bd420df9 245b203b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -44,7 +44,7 @@ bundle exec rake db:migrate RAILS_ENV=production
 
### 5. Setup unicorn
```
cd config/unicorn.rb.example config/unicorn.rb
cp config/unicorn.rb.example config/unicorn.rb
```
 
### 6. Install the new init script
Loading
Loading
Loading
Loading
@@ -161,7 +161,7 @@ start() {
 
# Then check if the service is running. If it is: don't start again.
if [ "$web_status" = "0" ]; then
echo "The Unicorn web server already running with pid $wpid, not restarting."
echo "The GitLab CI Unicorn web server already running with pid $wpid, not restarting."
else
# Remove old socket if it exists
rm -f "$socket_path"/gitlab_ci.socket 2>/dev/null
Loading
Loading
@@ -171,7 +171,7 @@ start() {
 
# If sidekiq is already running, don't start it again.
if [ "$sidekiq_status" = "0" ]; then
echo "The Sidekiq job dispatcher is already running with pid $spid, not restarting"
echo "The GitLab CI Sidekiq job dispatcher is already running with pid $spid, not restarting"
else
RAILS_ENV=$RAILS_ENV script/background_jobs start &
fi
Loading
Loading
@@ -187,11 +187,11 @@ stop() {
exit_if_not_running
 
if [ "$web_status" = "0" -a "$sidekiq_status" = "0" ]; then
echo -n "Shutting down both Unicorn and Sidekiq"
echo -n "Shutting down both GitLab CI Unicorn and Sidekiq"
elif [ "$web_status" = "0" ]; then
echo -n "Shutting down Sidekiq"
echo -n "Shutting down GitLab CI Sidekiq"
elif [ "$sidekiq_status" = "0" ]; then
echo -n "Shutting down Unicorn"
echo -n "Shutting down GitLab CI Unicorn"
fi
 
# If the Unicorn web server is running, tell it to stop;
Loading
Loading
@@ -226,21 +226,21 @@ stop() {
print_status() {
check_status
if [ "$web_status" != "0" -a "$sidekiq_status" != "0" ]; then
echo "GitLab is not running."
echo "GitLab CI is not running."
return
fi
if [ "$web_status" = "0" ]; then
echo "The GitLab Unicorn web server with pid $wpid is running."
echo "The GitLab CI Unicorn web server with pid $wpid is running."
else
printf "The GitLab Unicorn web server is \033[31mnot running\033[0m.\n"
printf "The GitLab CI Unicorn web server is \033[31mnot running\033[0m.\n"
fi
if [ "$sidekiq_status" = "0" ]; then
echo "The GitLab Sidekiq job dispatcher with pid $spid is running."
echo "The GitLab CI Sidekiq job dispatcher with pid $spid is running."
else
printf "The GitLab Sidekiq job dispatcher is \033[31mnot running\033[0m.\n"
printf "The GitLab CI Sidekiq job dispatcher is \033[31mnot running\033[0m.\n"
fi
if [ "$web_status" = "0" -a "$sidekiq_status" = "0" ]; then
printf "GitLab and all its components are \033[32mup and running\033[0m.\n"
printf "GitLab CI and all its components are \033[32mup and running\033[0m.\n"
fi
}
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment