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
1ec2a590
Commit
1ec2a590
authored
Nov 24, 2012
by
Daniel Hokka Zakrisson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1676 from dagwieers/service-action-fix
The vars stop/start were intended as strings
parents
2bfb7dee
18b797f0
Show 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 @
1ec2a590
...
...
@@ -327,8 +327,8 @@ class LinuxService(Service):
if
self
.
action
is
not
"restart"
:
rc_state
,
stdout
,
stderr
=
self
.
execute_command
(
"
%
s
%
s
%
s"
%
(
svc_cmd
,
self
.
action
,
self
.
arguments
))
else
:
rc1
,
stdout1
,
stderr1
=
self
.
execute_command
(
"
%
s
%
s
%
s"
%
(
svc_cmd
,
stop
,
self
.
arguments
))
rc2
,
stdout2
,
stderr2
=
self
.
execute_command
(
"
%
s
%
s
%
s"
%
(
svc_cmd
,
start
,
self
.
arguments
))
rc1
,
stdout1
,
stderr1
=
self
.
execute_command
(
"
%
s
%
s
%
s"
%
(
svc_cmd
,
'stop'
,
self
.
arguments
))
rc2
,
stdout2
,
stderr2
=
self
.
execute_command
(
"
%
s
%
s
%
s"
%
(
svc_cmd
,
'start'
,
self
.
arguments
))
if
rc1
!=
0
and
rc2
==
0
:
rc_state
=
rc
+
rc2
stdout
=
stdout2
...
...
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