67 lines
1.6 KiB
Plaintext
67 lines
1.6 KiB
Plaintext
![]() |
#!/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<73>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
|