Compare commits

...

No commits in common. "v963" and "v961" have entirely different histories.
v963 ... v961

4 changed files with 27 additions and 62 deletions

View File

@ -36,6 +36,8 @@ 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"
@ -49,6 +51,8 @@ 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
;;

View File

@ -1,21 +0,0 @@
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

View File

@ -1,16 +0,0 @@
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

View File

@ -15,29 +15,27 @@
#
#
if [ -d /var/install/sysvinit* ]; then
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
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