Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
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
edx
configuration
Commits
a788a77a
Unverified
Commit
a788a77a
authored
Jun 11, 2018
by
Kevin Falcone
Committed by
GitHub
Jun 11, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4611 from edx/jibsheet/pre_supervisor-reload-nginx-sooner
Reload nginx earlier in the process
parents
6e498247
96882c99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
playbooks/roles/supervisor/files/pre_supervisor_checks.py
+6
-6
No files found.
playbooks/roles/supervisor/files/pre_supervisor_checks.py
View file @
a788a77a
...
...
@@ -222,6 +222,12 @@ if __name__ == '__main__':
try
:
for
service
in
services_for_instance
(
instance_id
):
if
service
in
NGINX_ENABLE
:
subprocess
.
call
(
NGINX_ENABLE
[
service
],
shell
=
True
)
report
.
append
(
"Enabling nginx: {}"
.
format
(
service
))
# We have to reload the new config files
subprocess
.
call
(
"/bin/systemctl reload nginx"
,
shell
=
True
)
if
service
in
MIGRATION_COMMANDS
:
services
=
{
"lms"
:
{
'python'
:
args
.
edxapp_python
,
'env_file'
:
args
.
edxapp_env
,
'code_dir'
:
args
.
edxapp_code_dir
},
...
...
@@ -255,12 +261,6 @@ if __name__ == '__main__':
else
:
raise
Exception
(
"No conf available for service: {}"
.
format
(
link_location
))
if
service
in
NGINX_ENABLE
:
subprocess
.
call
(
NGINX_ENABLE
[
service
],
shell
=
True
)
report
.
append
(
"Enabling nginx: {}"
.
format
(
service
))
# We have to reload the new config files
subprocess
.
call
(
"/bin/systemctl reload nginx"
,
shell
=
True
)
except
AWSConnectionError
as
ae
:
msg
=
"{}: ERROR : {}"
.
format
(
prefix
,
ae
)
if
notify
:
...
...
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