#!/sbin/runscript # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/app-admin/fam-oss/files/fam,v 1.5 2003/02/14 22:01:30 vapier Exp $ depend() { need net coda-update auth2 } checkconfig() { if [ ! -e /vice/hostname ] ; then eerror "Please set up vice before starting the service..." return 1 fi } we_are_scm() { if [ "`cat /vice/hostname`" = "`cat /vice/db/scm`" ] ; then return 0 else return 1 fi } start() { checkconfig || return 1 ebegin "Starting codasrv" start-stop-daemon --start --exec /usr/sbin/codasrv eend $? } stop() { ebegin "Stopping codasrv" start-stop-daemon --stop --quiet --exec /usr/sbin/codasrv /usr/sbin/volutil shutdown sleep 30 eend $? }