2 # Copyright 2000, International Business Machines Corporation and others.
5 # This software has been released under the terms of the IBM Public
6 # License. For details, see the LICENSE file in the top-level source
7 # directory or online at http://www.openafs.org/dl/license10.html
9 # rc.afs: rc script for AFS on AIX platforms
11 # Install this script as /etc/rc.afs
12 # then make an entry in /etc/inittab after the NFS entry:
13 # rcnfs:2:wait:/etc/rc.nfs > /dev/console 2>&1 # Start NFS Daemons
14 # rcafs:2:wait:/etc/rc.afs > /dev/console 2>&1 # Start AFS Daemons
17 # Choose one depending on how much usage this client gets
18 SMALL="-stat 300 -dcache 100 -daemons 2 -volumes 50"
19 MEDIUM="-stat 2000 -dcache 800 -daemons 3 -volumes 70"
20 LARGE="-stat 2800 -dcache 2400 -daemons 5 -volumes 128"
23 # Choose one depending on how you want NFS requests handled by AFS
24 # Use "none" if this machine won't be an AFS/NFS Translator.
25 # To make the machine an AFS/NFS Translator, use iauth for:
26 # AIX 4.1.x where x >= 5
27 # AIX 4.2.x where x >= 1
35 if [ "$NFS" = "nfs" ]; then
39 elif [ "$NFS" = "iauth" ]; then
49 # Load AFS into the kernel
50 cd /usr/vice/etc/dkload
51 /usr/vice/etc/dkload/cfgexport -a /usr/vice/etc/dkload/export.ext${ExportExt}
52 /usr/vice/etc/dkload/cfgafs -a /usr/vice/etc/dkload/afs.ext${AFSExt}
54 /bin/echo "Unable to load AFS extensions into kernel. Not starting client."
60 if [ -x /usr/afs/bin/bosserver ]; then
61 echo 'Starting bosserver' > /dev/console
62 /usr/afs/bin/bosserver &
67 # Check that all of the client configuration files exist
69 for file in afsd cacheinfo ThisCell CellServDB; do
70 if [ ! -f /usr/vice/etc/${file} ]; then
71 /bin/echo "/usr/vice/etc/${file} does not exist. Not starting AFS client."
78 # Check that the root directory for AFS (/afs)
79 # and the cache directory (/usr/vice/cache) both exist
81 for dir in `awk -F: '{print $1, $2}' /usr/vice/etc/cacheinfo`; do
82 if [ ! -d ${dir} ]; then
83 echo "${dir} does not exist. Not starting AFS client."
90 /usr/vice/etc/afsd $OPTIONS $RMTSYS
93 # Start AFS inetd services
94 if [ -x /etc/inetd.afs -a -f /etc/inetd.conf.afs ]; then
95 /etc/inetd.afs /etc/inetd.conf.afs