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
9422b451
Commit
9422b451
authored
Dec 19, 2013
by
Pawel Krzaczkowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Init script - change start() stop() restart() reload() to xxxx_gitlab()
parent
c818712d
Changes
1
Show 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 @
9422b451
...
...
@@ -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
...
...
@@ -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