From d3e554292363dc8e2342b82c611075afb258d3cb Mon Sep 17 00:00:00 2001
From: Bach Dániel <bd@ik.bme.hu>
Date: Wed, 19 Feb 2014 15:42:40 +0100
Subject: [PATCH] misc: update upstart scripts

---
 miscellaneous/mancelery.conf | 11 ++++++-----
 miscellaneous/portal.conf    | 17 +++++++++++++++++
 2 files changed, 23 insertions(+), 5 deletions(-)
 create mode 100644 miscellaneous/portal.conf

diff --git a/miscellaneous/mancelery.conf b/miscellaneous/mancelery.conf
index ea5fb55..6972593 100644
--- a/miscellaneous/mancelery.conf
+++ b/miscellaneous/mancelery.conf
@@ -1,16 +1,17 @@
-description     "IK Cloud Django Development Server"
+description     "CIRCLE mancelery"
 
 start on runlevel [2345]
 stop on runlevel [!2345]
 
 respawn
 respawn limit 30 30
+setgid cloud
 setuid cloud
 
-chdir /home/cloud/circle/circle
-
 script
-    . /home/cloud/.virtualenvs/circle/local/bin/postactivate
-    exec /home/cloud/.virtualenvs/circle/bin/python manage.py celery --app=manager.mancelery worker --autoreload --loglevel=info --hostname=mancelery -B -c 1 --logfile /tmp/mancelery.log
+    cd /home/cloud/circle/circle
+    . /home/cloud/.virtualenvs/circle/bin/activate
+    . /home/cloud/.virtualenvs/circle/bin/postactivate
+    exec ./manage.py celery --app=manager.mancelery worker --autoreload --loglevel=info --hostname=mancelery -B -c 1
 end script
 
diff --git a/miscellaneous/portal.conf b/miscellaneous/portal.conf
new file mode 100644
index 0000000..fcc2a0d
--- /dev/null
+++ b/miscellaneous/portal.conf
@@ -0,0 +1,17 @@
+description     "CIRCLE django dev server"
+
+start on runlevel [2345]
+stop on runlevel [!2345]
+
+respawn
+respawn limit 30 30
+setgid cloud
+setuid cloud
+
+script
+    cd /home/cloud/circle/circle
+    . /home/cloud/.virtualenvs/circle/bin/activate
+    . /home/cloud/.virtualenvs/circle/bin/postactivate
+    exec ./manage.py runserver '[::]:8080'
+end script
+
--
libgit2 0.26.0