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
40574c19
Commit
40574c19
authored
Oct 25, 2013
by
James Tanner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #4448 reloaded services should be started if not running
parent
1f6edf7d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
library/system/service
+3
-1
No files found.
library/system/service
View file @
40574c19
...
...
@@ -272,7 +272,7 @@ class Service(object):
if
self
.
state
and
self
.
running
is
None
:
self
.
module
.
fail_json
(
msg
=
"failed determining service state, possible typo of service name?"
)
# Find out if state has changed
if
not
self
.
running
and
self
.
state
in
[
"started"
,
"running"
]:
if
not
self
.
running
and
self
.
state
in
[
"started"
,
"running"
,
"reloaded"
]:
self
.
svc_change
=
True
elif
self
.
running
and
self
.
state
in
[
"stopped"
,
"reloaded"
]:
self
.
svc_change
=
True
...
...
@@ -288,6 +288,8 @@ class Service(object):
# Control service
if
self
.
state
in
[
'started'
,
'running'
]:
self
.
action
=
"start"
elif
not
self
.
running
and
self
.
state
==
'reloaded'
:
self
.
action
=
"start"
elif
self
.
state
==
'stopped'
:
self
.
action
=
"stop"
elif
self
.
state
==
'reloaded'
:
...
...
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