![segler](/assets/img/avatar_default.png)
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_nfs-utils@6271 504e572c-2e33-0410-9681-be2bf7408885
67 lines
1.6 KiB
Bash
67 lines
1.6 KiB
Bash
#!/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
|
|
/bin/sleep 1
|
|
$0 start
|
|
;;
|
|
|
|
*)
|
|
echo "Usage: $0 {start|stop|restart}"
|
|
exit 1
|
|
;;
|
|
|
|
esac
|