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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
20af759e
Commit
20af759e
authored
Jul 24, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
43144b43
0a2bbc92
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
lib/support/init.d/gitlab
lib/support/init.d/gitlab
+11
-4
No files found.
lib/support/init.d/gitlab
View file @
20af759e
...
@@ -67,6 +67,13 @@ if ! cd "$app_root" ; then
...
@@ -67,6 +67,13 @@ if ! cd "$app_root" ; then
echo
"Failed to cd into
$app_root
, exiting!"
;
exit
1
echo
"Failed to cd into
$app_root
, exiting!"
;
exit
1
fi
fi
# Select the web server to use
if
[
-z
"
$EXPERIMENTAL_PUMA
"
]
;
then
use_web_server
=
"unicorn"
else
use_web_server
=
"puma"
fi
### Init Script functions
### Init Script functions
...
@@ -256,7 +263,7 @@ start_gitlab() {
...
@@ -256,7 +263,7 @@ start_gitlab() {
check_stale_pids
check_stale_pids
if
[
"
$web_status
"
!=
"0"
]
;
then
if
[
"
$web_status
"
!=
"0"
]
;
then
echo
"Starting GitLab web server"
echo
"Starting GitLab web server
(
$use_web_server
)
"
fi
fi
if
[
"
$sidekiq_status
"
!=
"0"
]
;
then
if
[
"
$sidekiq_status
"
!=
"0"
]
;
then
echo
"Starting GitLab Sidekiq"
echo
"Starting GitLab Sidekiq"
...
@@ -281,7 +288,7 @@ start_gitlab() {
...
@@ -281,7 +288,7 @@ start_gitlab() {
# Remove old socket if it exists
# Remove old socket if it exists
rm
-f
"
$rails_socket
"
2>/dev/null
rm
-f
"
$rails_socket
"
2>/dev/null
# Start the web server
# Start the web server
RAILS_ENV
=
$RAILS_ENV
EXPERIMENTAL_PUMA
=
$EXPERIMENTAL_PUMA
bin/web start
RAILS_ENV
=
$RAILS_ENV
USE_WEB_SERVER
=
$use_web_server
bin/web start
fi
fi
# If sidekiq is already running, don't start it again.
# If sidekiq is already running, don't start it again.
...
@@ -343,7 +350,7 @@ stop_gitlab() {
...
@@ -343,7 +350,7 @@ stop_gitlab() {
if
[
"
$web_status
"
=
"0"
]
;
then
if
[
"
$web_status
"
=
"0"
]
;
then
echo
"Shutting down GitLab web server"
echo
"Shutting down GitLab web server"
RAILS_ENV
=
$RAILS_ENV
EXPERIMENTAL_PUMA
=
$EXPERIMENTAL_PUMA
bin/web stop
RAILS_ENV
=
$RAILS_ENV
USE_WEB_SERVER
=
$use_web_server
bin/web stop
fi
fi
if
[
"
$sidekiq_status
"
=
"0"
]
;
then
if
[
"
$sidekiq_status
"
=
"0"
]
;
then
echo
"Shutting down GitLab Sidekiq"
echo
"Shutting down GitLab Sidekiq"
...
@@ -447,7 +454,7 @@ reload_gitlab(){
...
@@ -447,7 +454,7 @@ reload_gitlab(){
exit
1
exit
1
fi
fi
printf
"Reloading GitLab web server configuration... "
printf
"Reloading GitLab web server configuration... "
RAILS_ENV
=
$RAILS_ENV
EXPERIMENTAL_PUMA
=
$EXPERIMENTAL_PUMA
bin/web reload
RAILS_ENV
=
$RAILS_ENV
USE_WEB_SERVER
=
$use_web_server
bin/web reload
echo
"Done."
echo
"Done."
echo
"Restarting GitLab Sidekiq since it isn't capable of reloading its config..."
echo
"Restarting GitLab Sidekiq since it isn't capable of reloading its config..."
...
...
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