6 if ! test -d /var/lib/postgresql/9.4/main ; then
7 /usr/lib/postgresql/9.4/bin/initdb -D /var/lib/postgresql/9.4/main
8 sh -c "while ! (psql postgres -c'\du' | grep '^ arvbox ') >/dev/null ; do createuser -s arvbox ; sleep 1 ; done" &
10 mkdir -p /var/run/postgresql/9.4-main.pg_stat_tmp
12 rm -f /var/lib/postgresql/9.4/main/postmaster.pid
14 exec /usr/lib/postgresql/9.4/bin/postgres -D /var/lib/postgresql/9.4/main -c config_file=/etc/postgresql/9.4/main/postgresql.conf