From 7c38f4e23784b3c141db254059b88cb1044bd946 Mon Sep 17 00:00:00 2001 From: Rovanion Date: Tue, 27 Aug 2013 15:04:20 +0200 Subject: [PATCH] Changes recommended by @axilleas --- lib/support/init.d/gitlab | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/support/init.d/gitlab b/lib/support/init.d/gitlab index bf405c18cf9..65e036fe984 100755 --- a/lib/support/init.d/gitlab +++ b/lib/support/init.d/gitlab @@ -20,8 +20,8 @@ RAILS_ENV="production" # Script variable names should be lower-case not to conflict with internal # /bin/sh variables such as PATH, EDITOR or SHELL. -app_root="/home/gitlab/gitlab" -app_user="gitlab" +app_root="/home/git/gitlab" +app_user="git" unicorn_conf="$app_root/config/unicorn.rb" pid_path="$app_root/tmp/pids" socket_path="$app_root/tmp/sockets" @@ -68,7 +68,7 @@ check_pids(){ check_pids -# Checks wether the different parts of the server is already running or not. +# Checks whether the different parts of the service are already running or not. check_status(){ check_pids # If the web server is running kill -0 $wpid returns true, or rather 0. @@ -117,7 +117,7 @@ start() { else echo "Starting the GitLab Unicorn web server..." # Remove old socket if it exists - rm -f "$socket_path"/gitlab.socket + rm -f "$socket_path"/gitlab.socket 2>/dev/null # Start the webserver bundle exec unicorn_rails -D -c "$unicorn_conf" -E "$RAILS_ENV" fi @@ -231,4 +231,4 @@ case "$1" in ;; esac -exit \ No newline at end of file +exit