--- /dev/null
+#!/bin/sh -eux
+exec 2>&1
+sv=${PWD#/etc/sv/}
+eval "home=~$sv"
+exec /usr/bin/chpst \
+ -u "$sv":"$sv":"$sv"-data \
+ /usr/lib/postgresql/9.1/bin/postgres \
+ -D "$home"/data \
+ -e \
+ -c config_file=/etc/postgresql/9.1/main/postgresql.conf