d8eedcac2a4397a441f706d29eb9f126be1c25c9
[lhc/ateliers.git] / etc / sv / postgres / run
1 #!/bin/sh -eux
2 exec 2>&1
3 sv=${PWD#/etc/sv/}
4 eval "home=~$sv"
5 exec /usr/bin/chpst \
6 -u "$sv":"$sv":"$sv"-data \
7 /usr/lib/postgresql/9.1/bin/postgres \
8 -D "$home"/data \
9 -e \
10 -c config_file=/etc/postgresql/9.1/main/postgresql.conf