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
6949a9fb
Commit
6949a9fb
authored
May 11, 2013
by
Elan Ruusamäe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LinuxService: avoid enforcing systemd even if init.d script was found
parent
8ef18c2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
library/system/service
+2
-2
No files found.
library/system/service
View file @
6949a9fb
...
@@ -390,7 +390,7 @@ class LinuxService(Service):
...
@@ -390,7 +390,7 @@ class LinuxService(Service):
break
break
# Locate a tool for runtime service management (start, stop etc.)
# Locate a tool for runtime service management (start, stop etc.)
self
.
svc_cmd
=
''
self
.
svc_cmd
=
None
if
location
.
get
(
'service'
,
None
)
and
os
.
path
.
exists
(
"/etc/init.d/
%
s"
%
self
.
name
):
if
location
.
get
(
'service'
,
None
)
and
os
.
path
.
exists
(
"/etc/init.d/
%
s"
%
self
.
name
):
# SysV init script
# SysV init script
self
.
svc_cmd
=
location
[
'service'
]
self
.
svc_cmd
=
location
[
'service'
]
...
@@ -405,7 +405,7 @@ class LinuxService(Service):
...
@@ -405,7 +405,7 @@ class LinuxService(Service):
self
.
svc_initscript
=
initscript
self
.
svc_initscript
=
initscript
# couldn't find anything yet, assume systemd
# couldn't find anything yet, assume systemd
if
self
.
svc_initscript
is
None
:
if
self
.
svc_
cmd
is
None
and
self
.
svc_
initscript
is
None
:
if
location
.
get
(
'systemctl'
):
if
location
.
get
(
'systemctl'
):
self
.
svc_cmd
=
location
[
'systemctl'
]
self
.
svc_cmd
=
location
[
'systemctl'
]
...
...
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