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
OpenEdx
configuration
Commits
df9044d6
Commit
df9044d6
authored
Jun 18, 2013
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the xserver upstart script.
parent
1863d661
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
playbooks/roles/xserver/tasks/main.yml
+3
-0
playbooks/roles/xserver/templates/xserver.conf.j2
+26
-0
No files found.
playbooks/roles/xserver/tasks/main.yml
View file @
df9044d6
...
@@ -32,4 +32,7 @@
...
@@ -32,4 +32,7 @@
-
name
:
enforce app-armor rules
-
name
:
enforce app-armor rules
shell
:
aa-enforce /usr/bin/python-sandbox
shell
:
aa-enforce /usr/bin/python-sandbox
-
name
:
setup upstart script
template
:
src=xserver.conf.j2 dest=/etc/init/xserver.conf owner=root group=root
-
include
:
deploy.yml
-
include
:
deploy.yml
playbooks/roles/xserver/templates/xserver.conf.j2
0 → 100644
View file @
df9044d6
# gunicorn
description "gunicorn server"
author "Calen Pennington <cpennington@mitx.mit.edu>"
start on started edxapp
stop on stopped edxapp
respawn
respawn limit 3 30
env PID=/var/tmp/xserver.pid
env NEW_RELIC_CONFIG_FILE={{ app_base_dir }}/newrelic.ini
env NEWRELIC={{ venv_dir }}/bin/newrelic-admin
env WORKERS=4
env PORT=8000
env LANG=en_US.UTF-8
env DJANGO_SETTINGS_MODULE=xserver.aws_settings
env SERVICE_VARIANT="xserver"
chdir /opt/wwc/xserver
setuid www-data
exec {{ venv_dir }}/bin/gunicorn --preload -b 127.0.0.1:$PORT -w $WORKERS --timeout=30 --pythonpath={{ xserver_code_dir }} pyxserver_wsgi:application
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