From dce071acef1119aceca7eb80a66c035fb03e9259 Mon Sep 17 00:00:00 2001 From: Ben Kaduk Date: Sun, 21 Nov 2010 23:32:37 -0500 Subject: [PATCH] Remove outdated rc file for afsd on FBSD The semantics of rc scripts have changed drastically since this was written. It will need to be rewritten from scratch; the new version will live in src/packaging/FreeBSD as afsd.in, as it is included with the port packaging in that form. Change-Id: I397f8d5a9dc0430f1a9e8f2f0f378585cee4bd3b Reviewed-on: http://gerrit.openafs.org/4350 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/afsd/afs.rc.fbsd | 113 ------------------------------------------- 1 file changed, 113 deletions(-) delete mode 100644 src/afsd/afs.rc.fbsd diff --git a/src/afsd/afs.rc.fbsd b/src/afsd/afs.rc.fbsd deleted file mode 100644 index f0b9e9614..000000000 --- a/src/afsd/afs.rc.fbsd +++ /dev/null @@ -1,113 +0,0 @@ -#!/bin/sh -# Copyright 2000, International Business Machines Corporation and others. -# All Rights Reserved. -# -# This software has been released under the terms of the IBM Public -# License. For details, see the LICENSE file in the top-level source -# directory or online at http://www.openafs.org/dl/license10.html - -VICEETC=/usr/vice/etc -AFSD=$VICEETC/afsd -CONFIG=$VICEETC/config -AFSDOPT=$CONFIG/afsd.options -PACKAGE=$CONFIG/package.options - -LARGE="-stat 2800 -dcache 2400 -daemons 5 -volumes 128" -MEDIUM="-stat 2000 -dcache 800 -daemons 3 -volumes 70" -SMALL="-stat 300 -dcache 100 -daemons 2 -volumes 50" - -if [ -f $AFSDOPT ]; then - OPTIONS=`cat $AFSDOPT` -else - OPTIONS=$MEDIUM -fi - -# Need the commands ps, awk, kill, sleep -PATH=${PATH}${PATH:+:}/sbin:/bin:/usr/bin -if kldstat | grep -q afs.ko ; then -: -else -if [ -f $VICEETC/afs.ko ]; then - echo "Loading AFS kernel extensions" - kldload $VICEETC/afs.ko -else - echo "$VICEETC/afs.ko does not exist. Skipping AFS startup." - exit 1 -fi -fi -if kldstat | grep -q afs.ko ; then -: -else - echo "AFS kernel extensions failed to initialize. Skipping AFS startup." - exit -fi - -# -# Start the AFS server processes if a bosserver exists -# - -if [ -x /usr/afs/bin/bosserver ]; then - echo "Starting AFS Server processes" - /usr/afs/bin/bosserver - OPTIONS="$OPTIONS -nosettime" - sleep 30 -fi - -# -# Check that all of the client configuration files exist -# - -for file in $AFSD $VICEETC/cacheinfo \ - $VICEETC/ThisCell $VICEETC/CellServDB -do - if [ ! -f ${file} ]; then - echo "${file} does not exist. Not starting AFS client." - exit 1 - fi -done - -# -# Check that the root directory for AFS (/afs) -# and the cache directory (/usr/vice/cache) both exist -# - -for dir in `awk -F: '{print $1, $2}' $VICEETC/cacheinfo` -do - if [ ! -d ${dir} ]; then - echo "${dir} does not exist. Not starting AFS client." - exit 2 - fi -done - -echo "Starting afsd" -$AFSD $OPTIONS - -# -# Run package to update the disk -# -if [ -f /usr/afsws/etc/package -a -f $PACKAGE ]; then - /usr/afsws/etc/package -v -o `cat $PACKAGE` > /dev/console 2>&1 -case $? in -0) - (echo "Package completed successfully") > /dev/console 2>&1 - date > /dev/console 2>&1 - ;; -4) - (echo "Rebooting to restart system") > /dev/console 2>&1 - sync - /sbin/reboot - ;; -*) - (echo "Package update failed; continuing") > /dev/console 2>&1 - ;; -esac - -fi - -# -# Start AFS inetd services -# (See the AFS Command Ref. for notes on the proper configuration of inetd.afs) -# -if [ -f /usr/sbin/inetd.afs -a -f /etc/inetd.conf.afs ]; then - /usr/sbin/inetd.afs /etc/inetd.conf.afs -fi -- 2.39.5