Commit 77ea13ae by Guba Sándor

new upstart script

parent 78ad554a
description "CIRCLE Storage Driver Celery Upstart"
start on runlevel [2345]
stop on runlevel [!2345]
description "IK Cloud Django Development Server"
respawn
respawn limit 30 30
setgid cloud
setuid cloud
setgid cloud
chdir /home/cloud/storagedriver
instance $NAME
script
. /home/cloud/.virtualenvs/storage/local/bin/activate
. /home/cloud/.virtualenvs/storage/local/bin/postactivate
HOSTNAME=$(hostname -s)
exec celery -A storagecelery worker --loglevel=info -n ${HOSTNAME}.storage
cd /home/cloud/storagedriver/
. /home/cloud/.virtualenvs/storagedriver/local/bin/activate
. /home/cloud/.virtualenvs/storagedriver/local/bin/postactivate
exec celery -A storagecelery worker --loglevel=info -n $NAME
end script
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment