#!/sbin/runscript # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-fs/coda/files/codasrv,v 1.5 2004/07/26 17:50:21 griffon26 Exp $ depend() { need net coda-update auth2 } start() { local vicedir=$(/usr/sbin/codaconfedit server.conf vicedir) if [ ! -e "$vicedir/hostname" ] ; then eerror "Please run vice-setup before starting the service..." return 1 fi ebegin "Starting codasrv" start-stop-daemon --start --background --exec /usr/sbin/codasrv \ --pidfile /var/lib/vice/srv/pid eend $? } stop() { ebegin "Stopping codasrv" /usr/sbin/volutil shutdown start-stop-daemon --stop --retry 30/TERM --oknodo --exec /usr/sbin/codasrv \ --pidfile /var/lib/vice/srv/pid eend $? }