V962 Branch
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_nfs-utils@4401 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
commit
289ee7359e
0
etc/exports
Normal file
0
etc/exports
Normal file
70
etc/init.d/nfs.server
Normal file
70
etc/init.d/nfs.server
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
#!/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 quotas"
|
||||||
|
loadproc /usr/sbin/rpc.krquotad
|
||||||
|
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"
|
||||||
|
killproc /usr/sbin/rpc.krquotad
|
||||||
|
echo -n "Stopping NFS Services"
|
||||||
|
loadproc /usr/sbin/exportfs -au
|
||||||
|
;;
|
||||||
|
|
||||||
|
restart)
|
||||||
|
$0 stop
|
||||||
|
/usr/bin/sleep 1
|
||||||
|
$0 start
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "Usage: $0 {start|stop|restart}"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
|
||||||
|
esac
|
41
init/genpkg
Normal file
41
init/genpkg
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
#!/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
|
||||||
|
#
|
||||||
|
#
|
||||||
|
|
||||||
|
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
|
Loading…
Reference in New Issue
Block a user