#!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ depend() { need net use postgresql } checkconfig() { if [ ! -f ${PGQADM_CONF} ] ; then eerror "Please create ${PGQADM_CONF}" eerror "Sample conf: /usr/share/doc/skytools/conf/pgqadm.ini" return 1 fi return 0 } start() { checkconfig || return $? ebegin "Starting pgqadm" /usr/bin/pgqadm.py -d ${PGQADM_CONF} ticker eend $? "Failed to start pgqadm" } stop() { ebegin "Stopping pgqadm" /usr/bin/pgqadm.py -s ${PGQADM_CONF} eend $? "Failed to stop pgqadm" }