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
7af3bdc8
Commit
7af3bdc8
authored
Jul 10, 2012
by
Jeremy Smitherman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added additional output to service status checker
parent
238e4adb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
library/service
+2
-0
No files found.
library/service
View file @
7af3bdc8
...
@@ -108,6 +108,8 @@ def _get_service_status(name):
...
@@ -108,6 +108,8 @@ def _get_service_status(name):
running
=
True
running
=
True
elif
cleaned_status_stdout
.
find
(
"start"
)
!=
-
1
and
cleaned_status_stdout
.
find
(
"not"
)
==
-
1
:
elif
cleaned_status_stdout
.
find
(
"start"
)
!=
-
1
and
cleaned_status_stdout
.
find
(
"not"
)
==
-
1
:
running
=
True
running
=
True
elif
'could not access pid file'
in
cleaned_status_stdout
:
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