Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
693fa7a4
Commit
693fa7a4
authored
Jan 21, 2016
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Init script changes for gitlab-workhorse in 8.4
parent
481644ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
lib/support/init.d/gitlab
lib/support/init.d/gitlab
+6
-3
lib/support/init.d/gitlab.default.example
lib/support/init.d/gitlab.default.example
+3
-0
No files found.
lib/support/init.d/gitlab
View file @
693fa7a4
...
...
@@ -38,6 +38,7 @@ web_server_pid_path="$pid_path/unicorn.pid"
sidekiq_pid_path
=
"
$pid_path
/sidekiq.pid"
mail_room_enabled
=
false
mail_room_pid_path
=
"
$pid_path
/mail_room.pid"
gitlab_workhorse_dir
=
$(
cd
$app_root
/../gitlab-workhorse
&&
pwd
)
gitlab_workhorse_pid_path
=
"
$pid_path
/gitlab-workhorse.pid"
gitlab_workhorse_options
=
"-listenUmask 0 -listenNetwork unix -listenAddr
$socket_path
/gitlab-workhorse.socket -authBackend http://127.0.0.1:8080 -authSocket
$rails_socket
-documentRoot
$app_root
/public"
gitlab_workhorse_log
=
"
$app_root
/log/gitlab-workhorse.log"
...
...
@@ -233,10 +234,12 @@ start_gitlab() {
if
[
"
$gitlab_workhorse_status
"
=
"0"
]
;
then
echo
"The gitlab-workhorse is already running with pid
$spid
, not restarting"
else
# No need to remove a socket, gitlab-workhorse does this itself
# No need to remove a socket, gitlab-workhorse does this itself.
# Because gitlab-workhorse has multiple executables we need to fix
# the PATH.
$app_root
/bin/daemon_with_pidfile
$gitlab_workhorse_pid_path
\
$app_root
/../gitlab-workhorse/gitlab-workhorse
\
$gitlab_workhorse_options
\
/usr/bin/env
PATH
=
$gitlab_workhorse_dir
:
$PATH
\
gitlab-workhorse
$gitlab_workhorse_options
\
>>
$gitlab_workhorse_log
2>&1 &
fi
...
...
lib/support/init.d/gitlab.default.example
View file @
693fa7a4
...
...
@@ -30,6 +30,9 @@ web_server_pid_path="$pid_path/unicorn.pid"
# The default is "$pid_path/sidekiq.pid"
sidekiq_pid_path="$pid_path/sidekiq.pid"
# The directory where the gitlab-workhorse binaries are. Usually
# /home/git/gitlab-workhorse .
gitlab_workhorse_dir=$(cd $app_root/../gitlab-workhorse && pwd)
gitlab_workhorse_pid_path="$pid_path/gitlab-workhorse.pid"
# The -listenXxx settings determine where gitlab-workhorse
# listens for connections from NGINX. To listen on localhost:8181, write
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment