axsh/wakame-vdc — pull request #108 by t-iwano (2012-11-26 09:52:15+00:00)
Title: Changed so that unicorn.conf could be set up for every environment.

summary
---
The preset values of unicorn.conf differ for every environment.
I would like to use another unicorn.conf for every environment.

implementation
---

### before the change
+ /etc/init/vdc-dcmgr.conf
+ /etc/init/vdc-auth.conf
+ /etc/init/vdc-admin.conf
+ /etc/init/vdc-webui.conf
+ /etc/init/vdc-metadata.conf

exec bundle exec unicorn \
-o ${BIND_ADDR:-0.0.0.0} \
-p ${PORT:-9001} \
-c /etc/wakame-vdc/unicorn-common.conf ./config-${NAME}.ru 2>&1 \
| /usr/bin/flog \
-p /var/run/flog-vdc-${NAME}.pid \
/var/log/wakame-vdc/${NAME}.log

### after the change
+ /etc/init/vdc-dcmgr.conf
+ /etc/init/vdc-auth.conf
+ /etc/init/vdc-admin.conf
+ /etc/init/vdc-webui.conf
+ /etc/init/vdc-metadata.conf

exec bundle exec unicorn \
-o ${BIND_ADDR:-0.0.0.0} \
-p ${PORT:-9001} \
-c ${UNICORN_CONF:-/etc/wakame-vdc/unicorn-common.conf} ./config-${NAME}.ru 2>&1 \
| /usr/bin/flog \
-p /var/run/flog-vdc-${NAME}.pid \
/var/log/wakame-vdc/${NAME}.log

+ /etc/default/vdc-dcmgr
+ /etc/default/vdc-auth
+ /etc/default/vdc-admin
+ /etc/default/vdc-webui
+ /etc/default/vdc-metadata

#UNICORN_CONF=/etc/wakame-vdc/unicorn-dcmgr.conf