#!/bin/sh

PATH_TO_WISH='/usr/local/bin/wish8.4'
PGACCESS_HOME='/usr/local/share/postgresql/pgaccess'
PGLIB='/usr/local/lib'
PGPORT="${PGPORT:-5432}"

export PATH_TO_WISH
export PGACCESS_HOME
export PGLIB
export PGPORT

exec "${PATH_TO_WISH}" "${PGACCESS_HOME}/pgmonitor" "$@" > /dev/null
