FIX: use fast shutdown for postgres
- exec:
background: true
- cmd: su - postgres -c '/usr/lib/postgresql/9.3/bin/postmaster -D /etc/postgresql/9.3/main'
+ # use fast shutdown for pg
+ stop_signal: INT
+ cmd: HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/9.3/bin/postmaster -D /etc/postgresql/9.3/main
# give db a few secs to start up
- exec: "sleep 5"
before_code:
- exec:
background: true
- cmd: su - redis -s /bin/bash -c '/usr/bin/redis-server /etc/redis/redis.conf'
+ cmd: exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
after_code:
- replace:
filename: /etc/service/unicorn/run