Neue Version V963

git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_nfs-utils@5933 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
kueller 2011-01-03 10:48:06 +00:00
commit 998298fa20
4 changed files with 131 additions and 0 deletions

0
etc/exports Normal file
View File

66
etc/init.d/nfs.server Normal file
View File

@ -0,0 +1,66 @@
#!/bin/sh
#Start/Stop SystemV Script für nfsd
#(c) Rainmaker MultiMedia OHG
#
#$Author$
#$Date$
#$Revision$
#
#$Log$
#Revision 1.4 2007/02/10 20:39:30 kueller
#aus kexportfs ist nun exportfs geworden. script angepasst
#
#Revision 1.3 2003/04/19 07:51:53 kueller
#Nicht funktionsfähige status option entfernt
#
#Revision 1.2 2002/02/07 11:26:24 hkueller
#Server Deamon wird mit 8 Threads gestartet - lt. Docu bessere Performance
#Mountd wird nun mit nfs Version 3 gestartet
#
#Revision 1.1.1.1 2001/09/23 00:27:56 kueller
#Neustart wg. Datenverlust
#
#Revision 1.1 2001/09/09 16:18:30 cvs
#
#/etc/init.d/nfsd in /etc/init.d/nfs.server umbenannt (probleme bei kill auf
#nfsd - schiesst das eigene script mit ab..:-(( )
#
#Revision 1.1.1.1 2001/09/09 16:06:04 kueller
#NFS Server AddOns
#
#
source /etc/init.d/functions
case "$1" in
start)
echo -n "Starting NFS services"
loadproc /usr/sbin/exportfs -r
echo -n "Starting NFS daemon"
loadproc /usr/sbin/rpc.knfsd 8
echo -n "Starting NFS mountd"
loadproc /usr/sbin/rpc.kmountd --nfs-version 3
;;
stop)
echo -n "Stopping NFS mountd"
killproc /usr/sbin/rpc.kmountd
echo -n "Stopping NFS daemon"
pkill nfsd
evaluate_retval
echo -n "Stopping NFS Quotas"
loadproc /usr/sbin/exportfs -au
;;
restart)
$0 stop
/usr/bin/sleep 1
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac

22
etc/init/nfs.conf Normal file
View File

@ -0,0 +1,22 @@
description "Startup NFS Services"
author "Harald Kueller <harald.kueller@compuextreme.de>"
version 1.0
emits none special
start on (runlevel [2345] and (started rpc))
stop on runlevel [016]
console none
post-start script
/usr/sbin/exportfs -r
/usr/sbin/rpc.knfsd 8
/usr/sbin/start-statd
end script
exec /usr/sbin/rpc.kmountd -F --nfs-version 3
post-stop script
pkill nfsd
/usr/sbin/exportfs -au
end script

43
init/genpkg Normal file
View File

@ -0,0 +1,43 @@
#!/bin/bash
#genpkg script für nfs-utils
#(c) Rainmaker MultiMedia OHG
#
#$Author$
#$Date$
#$Revision$
#
#$Log$
#Revision 1.2 2001/10/17 08:28:38 kueller
#Rechte korrektur für init script
#
#Revision 1.1.1.1 2001/09/23 00:27:56 kueller
#Neustart wg. Datenverlust
#
#
if [ -d /var/install/sysvinit* ]; then
WDIR=`pwd`
if [ ! -d var/lib/nfs ]; then
mkdir -p var/lib/nfs
fi
if [ ! -f var/lib/nfs/etab ]; then
touch var/lib/nfs/etab
fi
if [ ! -f var/lib/nfs/rmtab ]; then
touch var/lib/nfs/rmtab
fi
cd etc/init.d
chmod 755 nfs.server
mkdir rc{0,1,2,3,4,5,6}.d
for i in 0 1 6; do
cd rc$i.d
ln -s ../nfs.server K40nfs.server
cd ..
done
for i in 2 3 4 5; do
cd rc$i.d
ln -s ../nfs.server S60nfs.server
cd ..
done
cd $WDIR
fi