Commit 77ea13ae by Guba Sándor

new upstart script

parent 78ad554a
description "CIRCLE Storage Driver Celery Upstart" description "IK Cloud Django Development Server"
start on runlevel [2345]
stop on runlevel [!2345]
respawn respawn
respawn limit 30 30 respawn limit 30 30
setgid cloud
setuid cloud setuid cloud
setgid cloud
chdir /home/cloud/storagedriver instance $NAME
script script
. /home/cloud/.virtualenvs/storage/local/bin/activate cd /home/cloud/storagedriver/
. /home/cloud/.virtualenvs/storage/local/bin/postactivate . /home/cloud/.virtualenvs/storagedriver/local/bin/activate
HOSTNAME=$(hostname -s) . /home/cloud/.virtualenvs/storagedriver/local/bin/postactivate
exec celery -A storagecelery worker --loglevel=info -n ${HOSTNAME}.storage exec celery -A storagecelery worker --loglevel=info -n $NAME
end script 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