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
82ec224a
Commit
82ec224a
authored
Jun 13, 2014
by
Eri Bastos
Committed by
James Cammarata
Aug 25, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Proposed fix for issue #7757
parent
500d8f1e
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 @
82ec224a
...
@@ -576,7 +576,7 @@ class LinuxService(Service):
...
@@ -576,7 +576,7 @@ class LinuxService(Service):
override_file
.
close
()
override_file
.
close
()
initpath
=
'/etc/init'
initpath
=
'/etc/init'
manreg
=
re
.
compile
(
'^manual
\
s*$'
,
re
.
M
|
re
.
I
)
manreg
=
re
.
compile
(
'^
start on
manual
\
s*$'
,
re
.
M
|
re
.
I
)
conf_file_name
=
"
%
s/
%
s.conf"
%
(
initpath
,
self
.
name
)
conf_file_name
=
"
%
s/
%
s.conf"
%
(
initpath
,
self
.
name
)
override_file_name
=
"
%
s/
%
s.override"
%
(
initpath
,
self
.
name
)
override_file_name
=
"
%
s/
%
s.override"
%
(
initpath
,
self
.
name
)
...
@@ -591,12 +591,12 @@ class LinuxService(Service):
...
@@ -591,12 +591,12 @@ class LinuxService(Service):
write_to_override_file
(
override_file_name
,
manreg
.
sub
(
''
,
override_file_contents
))
write_to_override_file
(
override_file_name
,
manreg
.
sub
(
''
,
override_file_contents
))
# Add manual stanza if not present and service disabled
# Add manual stanza if not present and service disabled
elif
not
(
self
.
enable
)
and
not
(
manreg
.
search
(
override_file_contents
)):
elif
not
(
self
.
enable
)
and
not
(
manreg
.
search
(
override_file_contents
)):
write_to_override_file
(
override_file_name
,
override_file_contents
+
'
\n
manual
\n
'
)
write_to_override_file
(
override_file_name
,
override_file_contents
+
'
\n
start on
manual
\n
'
)
else
:
else
:
return
return
# Add file with manual stanza if service disabled
# Add file with manual stanza if service disabled
elif
not
(
self
.
enable
):
elif
not
(
self
.
enable
):
write_to_override_file
(
override_file_name
,
'manual
\n
'
)
write_to_override_file
(
override_file_name
,
'
start on
manual
\n
'
)
else
:
else
:
return
return
...
...
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