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
4a715c73
Commit
4a715c73
authored
Oct 28, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'init_exit_status' of /home/git/repositories/gitlab/gitlabhq
parents
ff7073ac
4727fa3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
lib/support/init.d/gitlab
lib/support/init.d/gitlab
+8
-0
No files found.
lib/support/init.d/gitlab
View file @
4a715c73
...
@@ -102,6 +102,13 @@ check_status(){
...
@@ -102,6 +102,13 @@ check_status(){
else
else
sidekiq_status
=
"-1"
sidekiq_status
=
"-1"
fi
fi
if
[
$web_status
=
0
-a
$sidekiq_status
=
0
]
;
then
gitlab_status
=
0
else
# http://refspecs.linuxbase.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html
# code 3 means 'program is not running'
gitlab_status
=
3
fi
}
}
## Check for stale pids and remove them if necessary.
## Check for stale pids and remove them if necessary.
...
@@ -275,6 +282,7 @@ case "$1" in
...
@@ -275,6 +282,7 @@ case "$1" in
;;
;;
status
)
status
)
print_status
print_status
exit
$gitlab_status
;;
;;
*
)
*
)
echo
"Usage: service gitlab {start|stop|restart|reload|status}"
echo
"Usage: service gitlab {start|stop|restart|reload|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