summaryrefslogtreecommitdiffstats
path: root/conductor/examples/nginx/conductor-api.upstart.conf
diff options
context:
space:
mode:
Diffstat (limited to 'conductor/examples/nginx/conductor-api.upstart.conf')
-rw-r--r--conductor/examples/nginx/conductor-api.upstart.conf19
1 files changed, 19 insertions, 0 deletions
diff --git a/conductor/examples/nginx/conductor-api.upstart.conf b/conductor/examples/nginx/conductor-api.upstart.conf
new file mode 100644
index 0000000..fd8275f
--- /dev/null
+++ b/conductor/examples/nginx/conductor-api.upstart.conf
@@ -0,0 +1,19 @@
+# cat /etc/init/conductor-uwsgi.conf
+description "uWSGI server for conductor"
+
+start on runlevel [2345] # start on all runlevels.
+stop on runlevel [!2345] # stop when shutting down.
+
+respawn
+
+script
+ /opt/app/conductor/bin/uwsgi \
+ -s /tmp/uwsgi.sock \
+ --chmod-socket=777 \
+ --wsgi-file /etc/nginx/conductor.wsgi \
+ --callable application \
+ --set port=8091 \
+ --venv /opt/app/conductor/ \
+ --die-on-term \
+ --logto /var/log/conductor/conductor-api.log
+end scrip \ No newline at end of file