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
0e11e4c8
Commit
0e11e4c8
authored
Dec 04, 2013
by
Jasper N. Brouwer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed false positive on initctl as enable_cmd
Also on update-rc.d In service module
parent
56341a22
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
library/system/service
+3
-3
No files found.
library/system/service
View file @
0e11e4c8
...
...
@@ -431,10 +431,10 @@ class LinuxService(Service):
if
check_systemd
(
self
.
name
):
# service is managed by systemd
self
.
enable_cmd
=
location
[
'systemctl'
]
elif
os
.
path
.
exists
(
"/etc/init/
%
s.conf"
%
self
.
name
):
elif
os
.
path
.
exists
(
"/etc/init/
%
s.conf"
%
self
.
name
)
and
location
[
'initctl'
]
:
# service is managed by upstart
self
.
enable_cmd
=
location
[
'initctl'
]
elif
os
.
path
.
exists
(
"/etc/init.d/
%
s"
%
self
.
name
):
elif
os
.
path
.
exists
(
"/etc/init.d/
%
s"
%
self
.
name
)
and
location
[
'update-rc.d'
]
:
# service is managed by with SysV init scripts, but with update-rc.d
self
.
enable_cmd
=
location
[
'update-rc.d'
]
else
:
...
...
@@ -649,7 +649,7 @@ class LinuxService(Service):
return
if
self
.
enable
:
# make sure the init.d symlinks are created
# make sure the init.d symlinks are created
# otherwise enable might not work
(
rc
,
out
,
err
)
=
self
.
execute_command
(
"
%
s
%
s defaults"
\
%
(
self
.
enable_cmd
,
self
.
name
))
...
...
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