View | Details | Raw Unified
Collapse All | Expand All

(-) codasrv (-13 / +30 lines)
 Lines 3-21    Link Here 
# Distributed under the terms of the GNU General Public License v2
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/coda/files/auth2,v 1.1 2004/03/23 20:18:49 dragonheart Exp $
# $Header: /var/cvsroot/gentoo-x86/net-fs/coda/files/auth2,v 1.1 2004/03/23 20:18:49 dragonheart Exp $
depend() {
depend() {
	need net
	need net
}
}
checkconfig() {
checkconfig() {
	if [ ! -e /var/lib/vice/hostname ] ; then
	if [ ! -e /etc/coda/server.conf ] ; then
		eerror "Please set up vice before starting the service..."
		eerror "Please run vice-setup before starting the service..."
		return 1
	fi
	eval `grep "^vicedir=" /etc/coda/server.conf || echo vicedir=/var/lib/vice`
	if [ ! -e $vicedir/hostname ] ; then
		eerror "Please run vice-setup before starting the service..."
		return 1
		return 1
	fi
	fi
}
}
we_are_scm() {
we_are_scm() {
	if [ "`cat /var/lib/vice/hostname`" = "`cat /var/lib/vice/db/scm`" ] ; then
	if [ "`cat $vicedir/hostname`" = "`cat $vicedir/db/scm`" ] ; then
		return 0
		return 0
	else
	else
		return 1
		return 1
 Lines 8-14    Link Here 
}
}
we_are_scm() {
we_are_scm() {
	if [ "`cat /var/lib/vice/hostname`" = "`cat /var/lib/vice/db/scm`" ] ; then
	if [ "`cat $vicedir/hostname`" = "`cat $vicedir/db/scm`" ] ; then
		return 0
		return 0
	else
	else
		return 1
		return 1
 Lines 16-25    Link Here 
}
}
checkconfig() {
checkconfig() {
	if [ ! -e /var/lib/vice/hostname ] ; then
		eerror "Please set up coda before starting the service..."
        if [ ! -e /etc/coda/server.conf ] ; then
		return 1
                eerror "Please run vice-setup before starting the service..."
	fi
                return 1
        fi
        eval `grep "^vicedir=" /etc/coda/server.conf || echo vicedir=/var/lib/vice`
        if [ ! -e $vicedir/hostname ] ; then
                eerror "Please run vice-setup before starting the service..."
                return 1
        fi
}
}
start() {
start() {
 Lines 8-21    Link Here 
}
}
checkconfig() {
checkconfig() {
	if [ ! -e /var/lib/vice/hostname ] ; then
        if [ ! -e /etc/coda/server.conf ] ; then
		eerror "Please set up vice before starting the service..."
                eerror "Please run vice-setup before starting the service..."
		return 1
                return 1
	fi
        fi
        eval `grep "^vicedir=" /etc/coda/server.conf || echo vicedir=/var/lib/vice`
        if [ ! -e $vicedir/hostname ] ; then
                eerror "Please run vice-setup before starting the service..."
                return 1
        fi
}
}
we_are_scm() {
we_are_scm() {
	if [ "`cat /var/lib/vice/hostname`" = "`cat /var/lib/vice/db/scm`" ] ; then
	if [ "`cat $vicedir/hostname`" = "`cat $vicedir/db/scm`" ] ; then
		return 0
		return 0
	else
	else
		return 1
		return 1