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
416f551e
Commit
416f551e
authored
Mar 26, 2014
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5879 from krzaczek/smartos-fix
Init script - change stop() function name to stop_gitlab()
parents
78a7a9b0
9422b451
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
lib/support/init.d/gitlab
lib/support/init.d/gitlab
+10
-10
No files found.
lib/support/init.d/gitlab
View file @
416f551e
...
@@ -149,7 +149,7 @@ exit_if_not_running(){
...
@@ -149,7 +149,7 @@ exit_if_not_running(){
}
}
## Starts Unicorn and Sidekiq if they're not running.
## Starts Unicorn and Sidekiq if they're not running.
start
()
{
start
_gitlab
()
{
check_stale_pids
check_stale_pids
if
[
"
$web_status
"
!=
"0"
-a
"
$sidekiq_status
"
!=
"0"
]
;
then
if
[
"
$web_status
"
!=
"0"
-a
"
$sidekiq_status
"
!=
"0"
]
;
then
...
@@ -184,7 +184,7 @@ start() {
...
@@ -184,7 +184,7 @@ start() {
}
}
## Asks the Unicorn and the Sidekiq if they would be so kind as to stop, if not kills them.
## 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
exit_if_not_running
if
[
"
$web_status
"
=
"0"
-a
"
$sidekiq_status
"
=
"0"
]
;
then
if
[
"
$web_status
"
=
"0"
-a
"
$sidekiq_status
"
=
"0"
]
;
then
...
@@ -246,7 +246,7 @@ print_status() {
...
@@ -246,7 +246,7 @@ print_status() {
}
}
## Tells unicorn to reload it's config and Sidekiq to restart
## Tells unicorn to reload it's config and Sidekiq to restart
reload
(){
reload
_gitlab
(){
exit_if_not_running
exit_if_not_running
if
[
"
$wpid
"
=
"0"
]
;
then
if
[
"
$wpid
"
=
"0"
]
;
then
echo
"The GitLab Unicorn Web server is not running thus its configuration can't be reloaded."
echo
"The GitLab Unicorn Web server is not running thus its configuration can't be reloaded."
...
@@ -263,12 +263,12 @@ reload(){
...
@@ -263,12 +263,12 @@ reload(){
}
}
## Restarts Sidekiq and Unicorn.
## Restarts Sidekiq and Unicorn.
restart
(){
restart
_gitlab
(){
check_status
check_status
if
[
"
$web_status
"
=
"0"
-o
"
$sidekiq_status
"
=
"0"
]
;
then
if
[
"
$web_status
"
=
"0"
-o
"
$sidekiq_status
"
=
"0"
]
;
then
stop
stop
_gitlab
fi
fi
start
start
_gitlab
}
}
...
@@ -276,16 +276,16 @@ restart(){
...
@@ -276,16 +276,16 @@ restart(){
case
"
$1
"
in
case
"
$1
"
in
start
)
start
)
start
start
_gitlab
;;
;;
stop
)
stop
)
stop
stop
_gitlab
;;
;;
restart
)
restart
)
restart
restart
_gitlab
;;
;;
reload|force-reload
)
reload|force-reload
)
reload
reload
_gitlab
;;
;;
status
)
status
)
print_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