summaryrefslogtreecommitdiff
path: root/net-fs
diff options
context:
space:
mode:
Diffstat (limited to 'net-fs')
-rw-r--r--net-fs/openafs/files/afs.rc.rc617
1 files changed, 10 insertions, 7 deletions
diff --git a/net-fs/openafs/files/afs.rc.rc6 b/net-fs/openafs/files/afs.rc.rc6
index cea7ec992505..a785544d1ff6 100644
--- a/net-fs/openafs/files/afs.rc.rc6
+++ b/net-fs/openafs/files/afs.rc.rc6
@@ -41,7 +41,7 @@ check_ext2() {
then
echo ">>> PLEASE CREATE A EXT2 (no reiserfs) PARTITION (of aprox. 200M)"
echo ">>> AND MOUNT IT TO /USR/VICE/CACHE !!!"
- exit 1
+ return 1
fi
}
@@ -151,7 +151,7 @@ load_client() {
if [ ! -f $MODLOADDIR/$LIBAFS ] ; then
echo AFS module $MODLOADDIR/$LIBAFS does not exist. Not starting AFS.
- exit 1
+ return 1
fi
# use the prefix command if required
@@ -162,7 +162,10 @@ load_client() {
start(){
# Load kernel extensions
- check_ext2
+ if check_ext2 ; then :
+ else
+ eend 1 "Error: No ext2 partition for afs cache"
+ fi
check_cacheinfo
ebegin "Starting AFS services"
@@ -170,7 +173,7 @@ start(){
if load_client ; then :
else
echo Failed to load AFS client, not starting AFS services.
- eend 1 "Error Starting AFS client"
+ eend "Error Starting AFS client"
fi
# Start bosserver, it if exists
@@ -183,9 +186,9 @@ start(){
/usr/sbin/afsd ${OPTIONS} 1>&2
STATUS=$?
# Start AFS version of inetd.conf if present.
- if test -f /usr/afsws/etc/inetd.conf -a -x /usr/afsws/etc/inetd.afs ; then
- /usr/afsws/etc/inetd.afs /usr/afsws/etc/inetd.conf
- fi
+ #if test -f /usr/afsws/etc/inetd.conf -a -x /usr/afsws/etc/inetd.afs ; then
+ # /usr/afsws/etc/inetd.afs /usr/afsws/etc/inetd.conf
+ #fi
$AFS_POST_INIT
fi
eend $STATUS "Error starting AFS"