# Check if PostgreSQL is running
pid=`pgrep postgres`
rtn=$?
if [ "$rtn" -eq 0 ]; then
	echo 'Shutting down PostgreSQL'
	/etc/init.d/postgresql stop
fi
