Commit 7c38f4e23784b3c141db254059b88cb1044bd946

Authored by Rovanion
Committed by Rovanion Luckey
1 parent df9e1db9

Changes recommended by @axilleas

Showing 1 changed file with 5 additions and 5 deletions   Show diff stats
lib/support/init.d/gitlab
... ... @@ -20,8 +20,8 @@ RAILS_ENV="production"
20 20  
21 21 # Script variable names should be lower-case not to conflict with internal
22 22 # /bin/sh variables such as PATH, EDITOR or SHELL.
23   -app_root="/home/gitlab/gitlab"
24   -app_user="gitlab"
  23 +app_root="/home/git/gitlab"
  24 +app_user="git"
25 25 unicorn_conf="$app_root/config/unicorn.rb"
26 26 pid_path="$app_root/tmp/pids"
27 27 socket_path="$app_root/tmp/sockets"
... ... @@ -68,7 +68,7 @@ check_pids(){
68 68 check_pids
69 69  
70 70  
71   -# Checks wether the different parts of the server is already running or not.
  71 +# Checks whether the different parts of the service are already running or not.
72 72 check_status(){
73 73 check_pids
74 74 # If the web server is running kill -0 $wpid returns true, or rather 0.
... ... @@ -117,7 +117,7 @@ start() {
117 117 else
118 118 echo "Starting the GitLab Unicorn web server..."
119 119 # Remove old socket if it exists
120   - rm -f "$socket_path"/gitlab.socket
  120 + rm -f "$socket_path"/gitlab.socket 2>/dev/null
121 121 # Start the webserver
122 122 bundle exec unicorn_rails -D -c "$unicorn_conf" -E "$RAILS_ENV"
123 123 fi
... ... @@ -231,4 +231,4 @@ case "$1" in
231 231 ;;
232 232 esac
233 233  
234   -exit
235 234 \ No newline at end of file
  235 +exit
... ...