#! /bin/sh # # chkconfig: 2345 80 20 # description: Bruker PostgreSQL database daemon # # Copyright (C) 2005-2006 Bruker AXS # # $Header: /usr/lib/cvsroot/bnpython/linux/brukerpostgresql,v 1.2 2006/11/21 21:12:27 kaercher Exp $ # bnrun=/usr/local/bn/bin/bnrun case "$1" in start|reload) if [ -x $bnrun ]; then $bnrun startdb fi ;; stop) if [ -x $bnrun ]; then $bnrun stopdb fi ;; restart) $0 stop $0 start ;; status) $bnrun statusdb ;; *) /bin/echo "Usage: $0 {start|stop|status|restart}" exit 1 esac exit 0