#!/bin/sh

if [ -r /var/lib/postgresql/data/postmaster.pid ]; then
 su - postgres -c "pg_ctl stop -m fast -D /var/lib/postgresql/data"
fi
