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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
aabd90a8
Commit
aabd90a8
authored
Mar 27, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:gitlabhq/gitlabhq
parents
5d966ccd
ad7cd8fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
lib/support/init.d/gitlab
lib/support/init.d/gitlab
+11
-11
No files found.
lib/support/init.d/gitlab
View file @
aabd90a8
...
...
@@ -149,7 +149,7 @@ exit_if_not_running(){
}
## Starts Unicorn and Sidekiq if they're not running.
start
()
{
start
_gitlab
()
{
check_stale_pids
if
[
"
$web_status
"
!=
"0"
-a
"
$sidekiq_status
"
!=
"0"
]
;
then
...
...
@@ -167,7 +167,7 @@ start() {
# Remove old socket if it exists
rm
-f
"
$socket_path
"
/gitlab.socket 2>/dev/null
# Start the web server
RAILS_ENV
=
$RAILS_ENV
script/web start
&
RAILS_ENV
=
$RAILS_ENV
script/web start
fi
# If sidekiq is already running, don't start it again.
...
...
@@ -184,7 +184,7 @@ start() {
}
## Asks the Unicorn and the Sidekiq if they would be so kind as to stop, if not kills them.
stop
()
{
stop
_gitlab
()
{
exit_if_not_running
if
[
"
$web_status
"
=
"0"
-a
"
$sidekiq_status
"
=
"0"
]
;
then
...
...
@@ -246,7 +246,7 @@ print_status() {
}
## Tells unicorn to reload it's config and Sidekiq to restart
reload
(){
reload
_gitlab
(){
exit_if_not_running
if
[
"
$wpid
"
=
"0"
]
;
then
echo
"The GitLab Unicorn Web server is not running thus its configuration can't be reloaded."
...
...
@@ -263,12 +263,12 @@ reload(){
}
## Restarts Sidekiq and Unicorn.
restart
(){
restart
_gitlab
(){
check_status
if
[
"
$web_status
"
=
"0"
-o
"
$sidekiq_status
"
=
"0"
]
;
then
stop
stop
_gitlab
fi
start
start
_gitlab
}
...
...
@@ -276,16 +276,16 @@ restart(){
case
"
$1
"
in
start
)
start
start
_gitlab
;;
stop
)
stop
stop
_gitlab
;;
restart
)
restart
restart
_gitlab
;;
reload|force-reload
)
reload
reload
_gitlab
;;
status
)
print_status
...
...
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