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
3d699322
Commit
3d699322
authored
Feb 07, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
service status 4 should also be stopped
parent
f3305564
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
library/service
+2
-2
No files found.
library/service
View file @
3d699322
...
...
@@ -376,7 +376,7 @@ class LinuxService(Service):
self
.
action
=
"status"
rc
,
status_stdout
,
status_stderr
=
self
.
service_control
()
# Check if we
got
upstart on the system and then the job state
# Check if we
have
upstart on the system and then the job state
if
self
.
svc_initctl
!=
None
and
self
.
running
is
None
:
# check the job status by upstart response
initctl_rc
,
initctl_status_stdout
,
initctl_status_stderr
=
self
.
execute_command
(
"
%
s status
%
s"
%
(
self
.
svc_initctl
,
self
.
name
))
...
...
@@ -387,7 +387,7 @@ class LinuxService(Service):
# if the job status is still not known check it by response code
if
self
.
running
==
None
:
if
rc
in
[
2
,
3
,
69
]:
if
rc
in
[
2
,
3
,
4
,
69
]:
self
.
running
=
False
elif
rc
==
0
:
self
.
running
=
True
...
...
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