Vorbereitung auf upstart
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_nfs-utils@5546 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
parent
6420faa51e
commit
b49fd622c9
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 [S016]
|
||||||
|
|
||||||
|
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
|
||||||
|
pkill nfsd
|
||||||
|
/usr/sbin/exportfs -au
|
||||||
|
end script
|
@ -15,6 +15,7 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if [ -d /var/install/sysvinit* ]; then
|
||||||
WDIR=`pwd`
|
WDIR=`pwd`
|
||||||
if [ ! -d var/lib/nfs ]; then
|
if [ ! -d var/lib/nfs ]; then
|
||||||
mkdir -p var/lib/nfs
|
mkdir -p var/lib/nfs
|
||||||
@ -39,3 +40,4 @@ for i in 2 3 4 5; do
|
|||||||
cd ..
|
cd ..
|
||||||
done
|
done
|
||||||
cd $WDIR
|
cd $WDIR
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user