diff options
author | Marin Jankovski <marin@gitlab.com> | 2014-05-27 17:14:41 +0200 |
---|---|---|
committer | Marin Jankovski <marin@gitlab.com> | 2014-05-27 17:14:41 +0200 |
commit | 2341cefd6fa2811a1af41f2068554738d7eebfc4 (patch) | |
tree | 807a376257151323a203c39dd2ff08b23e29a21e /lib/support | |
parent | cb4b504b26a269ba6ebb3fee165296a80d962c69 (diff) | |
download | gitlab-ce-2341cefd6fa2811a1af41f2068554738d7eebfc4.tar.gz |
Move from script to bin directory.
Diffstat (limited to 'lib/support')
-rwxr-xr-x | lib/support/init.d/gitlab | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/support/init.d/gitlab b/lib/support/init.d/gitlab index 3dd4465a6d8..5c1ce2dadab 100755 --- a/lib/support/init.d/gitlab +++ b/lib/support/init.d/gitlab @@ -167,14 +167,14 @@ start_gitlab() { # Remove old socket if it exists rm -f "$socket_path"/gitlab.socket 2>/dev/null # Start the web server - RAILS_ENV=$RAILS_ENV script/web start + RAILS_ENV=$RAILS_ENV bin/web start fi # 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" else - RAILS_ENV=$RAILS_ENV script/background_jobs start & + RAILS_ENV=$RAILS_ENV bin/background_jobs start & fi # Wait for the pids to be planted @@ -197,11 +197,11 @@ stop_gitlab() { # If the Unicorn web server is running, tell it to stop; if [ "$web_status" = "0" ]; then - RAILS_ENV=$RAILS_ENV script/web stop + RAILS_ENV=$RAILS_ENV bin/web stop fi # And do the same thing for the Sidekiq. if [ "$sidekiq_status" = "0" ]; then - RAILS_ENV=$RAILS_ENV script/background_jobs stop + RAILS_ENV=$RAILS_ENV bin/background_jobs stop fi # If something needs to be stopped, lets wait for it to stop. Never use SIGKILL in a script. @@ -253,10 +253,10 @@ reload_gitlab(){ exit 1 fi printf "Reloading GitLab Unicorn configuration... " - RAILS_ENV=$RAILS_ENV script/web reload + RAILS_ENV=$RAILS_ENV bin/web reload echo "Done." echo "Restarting GitLab Sidekiq since it isn't capable of reloading its config..." - RAILS_ENV=$RAILS_ENV script/background_jobs restart + RAILS_ENV=$RAILS_ENV bin/background_jobs restart wait_for_pids print_status |