#!/bin/sh # postgresql/run # daemontools run script for postgresql # wcm, 2004.04.13 - 2004.04.13 # === CLUSTER=/var/postgresql/data ## note: all other configuration defined in ## ${CLUSTER}/postgresql.conf exec 2>&1 echo "*** Starting postgresql on data ${CLUSTER}" exec \ setuidgid postgres \ postmaster -D ${CLUSTER} ### that's all, folks!