diff options
Diffstat (limited to 'net-fs/coda/files/6.0.15/auth2')
-rw-r--r-- | net-fs/coda/files/6.0.15/auth2 | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/net-fs/coda/files/6.0.15/auth2 b/net-fs/coda/files/6.0.15/auth2 deleted file mode 100644 index 9e1f3386e85d..000000000000 --- a/net-fs/coda/files/6.0.15/auth2 +++ /dev/null @@ -1,53 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/coda/files/6.0.15/auth2,v 1.1 2008/07/12 22:31:41 chtekk Exp $ - -depend() { - need net -} - -checkconfig() { - if [ ! -e $vicedir/hostname ] ; then - eerror "Please run vice-setup before starting the service..." - return 1 - fi -} - -we_are_scm() { - if [ "`cat $vicedir/hostname`" = "`cat $vicedir/db/scm`" ] ; then - return 0 - else - return 1 - fi -} - -getvicedir() { - vicedir=`/usr/sbin/codaconfedit server.conf vicedir` -} - -start() { - getvicedir - - checkconfig || return 1 - - ebegin "Starting auth2" - - # Check to see if we are the SCM. If not, we must add -chk to auth2 - - if (! we_are_scm) ; then - start-stop-daemon --start --quiet --exec /usr/sbin/auth2 \ - --background -- -chk - else - start-stop-daemon --start --quiet --exec /usr/sbin/auth2 \ - --background - fi - - eend $? -} - -stop() { - ebegin "Stopping auth2" - start-stop-daemon --stop --quiet --exec /usr/sbin/auth2 - eend $? -} |