Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
9bb83067
Commit
9bb83067
authored
Sep 21, 2012
by
Dave Coutu
Committed by
Dave Coutu
Sep 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added cases for 'dead but subsys locked' status
parent
b8c4bb9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
library/service
+4
-0
No files found.
library/service
View file @
9bb83067
...
@@ -101,6 +101,8 @@ def _get_service_status(name, pattern):
...
@@ -101,6 +101,8 @@ def _get_service_status(name, pattern):
if
running
==
None
:
if
running
==
None
:
if
rc
==
3
:
if
rc
==
3
:
running
=
False
running
=
False
if
rc
==
2
:
running
=
False
elif
rc
==
0
:
elif
rc
==
0
:
running
=
True
running
=
True
...
@@ -120,6 +122,8 @@ def _get_service_status(name, pattern):
...
@@ -120,6 +122,8 @@ def _get_service_status(name, pattern):
running
=
False
running
=
False
elif
'is dead and pid file exists'
in
cleanout
:
elif
'is dead and pid file exists'
in
cleanout
:
running
=
False
running
=
False
elif
'dead but subsys locked'
in
cleanout
:
running
=
False
# if the job status is still not known check it by special conditions
# if the job status is still not known check it by special conditions
if
running
==
None
:
if
running
==
None
:
...
...
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