2008-05-03 17:01:43 +00:00
|
|
|
|
#!/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
|
2011-11-21 21:44:41 +00:00
|
|
|
|
/bin/sleep 1
|
2008-05-03 17:01:43 +00:00
|
|
|
|
$0 start
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
*)
|
|
|
|
|
echo "Usage: $0 {start|stop|restart}"
|
|
|
|
|
exit 1
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
esac
|