Commit a7de2da2 by Guba Sándor

misc: fixed vmcelery upsart to handle instances

parent 10fac2b8
description "IK Cloud Django Development Server" description "IK Cloud Django Development Server"
start on runlevel [2345]
stop on runlevel [!2345]
respawn respawn
respawn limit 30 30 respawn limit 30 30
setuid cloud setuid cloud
setgid libvirtd setgid libvirtd
instance $NAME
script script
cd /home/cloud/vmdriver cd /home/cloud/vmdriver
. /home/cloud/.virtualenvs/vmdriver/local/bin/activate . /home/cloud/.virtualenvs/vmdriver/local/bin/activate
. /home/cloud/.virtualenvs/vmdriver/local/bin/postactivate . /home/cloud/.virtualenvs/vmdriver/local/bin/postactivate
HOSTNAME=$(hostname -s) exec celery -A vmcelery worker --loglevel=info -n $NAME
exec celery -A vmcelery worker --loglevel=info -n ${HOSTNAME}.vmdriver
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