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
98ea81e6
Commit
98ea81e6
authored
Aug 29, 2013
by
Rovanion
Committed by
Rovanion Luckey
Aug 29, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restart works again, grammar mistakes corrected.
parent
cda4d688
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
lib/support/init.d/gitlab
lib/support/init.d/gitlab
+16
-5
No files found.
lib/support/init.d/gitlab
View file @
98ea81e6
...
...
@@ -188,7 +188,11 @@ stop() {
# Returns the status of GitLab and it's components
status
()
{
exit_if_not_running
check_status
if
[
"
$web_status
"
!=
"0"
-a
"
$sidekiq_status
"
!=
"0"
]
;
then
echo
"GitLab is not running."
return
fi
if
[
"
$web_status
"
=
"0"
]
;
then
echo
"The GitLab Unicorn webserver with pid
$wpid
is running."
else
...
...
@@ -207,13 +211,13 @@ status() {
reload
(){
exit_if_not_running
if
[
"
$wpid
"
=
"0"
]
;
then
echo
"The GitLab Unicorn Web server is not running thus it
'
s configuration can't be reloaded."
echo
"The GitLab Unicorn Web server is not running thus its configuration can't be reloaded."
exit
1
fi
printf
"Reloading GitLab Unicorn configuration... "
kill
-USR2
"
$wpid
"
echo
"Done."
echo
"Restarting GitLab Sidekiq since it isn't capable of reloading it
'
s config..."
echo
"Restarting GitLab Sidekiq since it isn't capable of reloading its config..."
RAILS_ENV
=
$RAILS_ENV
bundle
exec
rake sidekiq:stop
echo
"Starting Sidekiq..."
RAILS_ENV
=
$RAILS_ENV
bundle
exec
rake sidekiq:start
...
...
@@ -222,6 +226,14 @@ reload(){
status
}
restart
(){
check_status
if
[
"
$web_status
"
=
"0"
-o
"
$sidekiq_status
"
=
"0"
]
;
then
stop
fi
start
}
## Finally the input handling.
...
...
@@ -233,8 +245,7 @@ case "$1" in
stop
;;
restart
)
stop
start
restart
;;
reload|force-reload
)
reload
...
...
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