Compare commits
No commits in common. "v961" and "v963" have entirely different histories.
@ -36,8 +36,6 @@ 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"
|
||||
@ -51,8 +49,6 @@ case "$1" in
|
||||
pkill nfsd
|
||||
evaluate_retval
|
||||
echo -n "Stopping NFS Quotas"
|
||||
killproc /usr/sbin/rpc.krquotad
|
||||
echo -n "Stopping NFS Services"
|
||||
loadproc /usr/sbin/exportfs -au
|
||||
;;
|
||||
|
||||
|
21
etc/init/nfs.conf
Normal file
21
etc/init/nfs.conf
Normal file
@ -0,0 +1,21 @@
|
||||
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
|
||||
end script
|
||||
|
||||
exec /usr/sbin/rpc.kmountd -F --nfs-version 3
|
||||
|
||||
post-stop script
|
||||
/usr/sbin/rpc.knfsd 0
|
||||
/usr/sbin/exportfs -au
|
||||
end script
|
16
etc/init/statd.conf
Normal file
16
etc/init/statd.conf
Normal file
@ -0,0 +1,16 @@
|
||||
description "Startup NFS Services"
|
||||
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
||||
version 1.0
|
||||
emits none special
|
||||
|
||||
start on (started nfs)
|
||||
stop on (stopping nfs)
|
||||
|
||||
|
||||
pre-start script
|
||||
/sbin/CheckPid /var/run/rpc.statd.pid
|
||||
end script
|
||||
|
||||
console none
|
||||
|
||||
exec /usr/sbin/start-statd
|
@ -15,6 +15,7 @@
|
||||
#
|
||||
#
|
||||
|
||||
if [ -d /var/install/sysvinit* ]; then
|
||||
WDIR=`pwd`
|
||||
if [ ! -d var/lib/nfs ]; then
|
||||
mkdir -p var/lib/nfs
|
||||
@ -39,3 +40,4 @@ for i in 2 3 4 5; do
|
||||
cd ..
|
||||
done
|
||||
cd $WDIR
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user