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
Léo-Paul Géneau
gitlab-ce
Commits
cf7aab9b
Commit
cf7aab9b
authored
Mar 27, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce
parents
aabd90a8
24e9c5e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
lib/support/init.d/gitlab
lib/support/init.d/gitlab
+5
-5
No files found.
lib/support/init.d/gitlab
View file @
cf7aab9b
...
...
@@ -131,7 +131,7 @@ check_stale_pids(){
fi
fi
if
[
"
$spid
"
!=
"0"
-a
"
$sidekiq_status
"
!=
"0"
]
;
then
echo
"Removing stale Sidekiq
web server pid. This is most likely caused by the
Sidekiq crashing the last time it ran."
echo
"Removing stale Sidekiq
job dispatcher pid. This is most likely caused by
Sidekiq crashing the last time it ran."
if
!
rm
"
$sidekiq_pid_path
"
;
then
echo
"Unable to remove stale pid, exiting"
exit
1
...
...
@@ -155,9 +155,9 @@ start_gitlab() {
if
[
"
$web_status
"
!=
"0"
-a
"
$sidekiq_status
"
!=
"0"
]
;
then
echo
-n
"Starting both the GitLab Unicorn and Sidekiq"
elif
[
"
$web_status
"
!=
"0"
]
;
then
echo
-n
"Starting GitLab Sidekiq"
elif
[
"
$sidekiq_status
"
!=
"0"
]
;
then
echo
-n
"Starting GitLab Unicorn"
elif
[
"
$sidekiq_status
"
!=
"0"
]
;
then
echo
-n
"Starting GitLab Sidekiq"
fi
# Then check if the service is running. If it is: don't start again.
...
...
@@ -190,9 +190,9 @@ stop_gitlab() {
if
[
"
$web_status
"
=
"0"
-a
"
$sidekiq_status
"
=
"0"
]
;
then
echo
-n
"Shutting down both Unicorn and Sidekiq"
elif
[
"
$web_status
"
=
"0"
]
;
then
echo
-n
"Shutting down Sidekiq"
elif
[
"
$sidekiq_status
"
=
"0"
]
;
then
echo
-n
"Shutting down Unicorn"
elif
[
"
$sidekiq_status
"
=
"0"
]
;
then
echo
-n
"Shutting down Sidekiq"
fi
# If the Unicorn web server is running, tell it to stop;
...
...
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