mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
nfs-utils: start/stop also statd so clients will be able to do locking
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2578 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
@@ -7,9 +7,10 @@
|
|||||||
# Other control variables may be overridden here too
|
# Other control variables may be overridden here too
|
||||||
test -r /etc/default/nfsd && . /etc/default/nfsd
|
test -r /etc/default/nfsd && . /etc/default/nfsd
|
||||||
#
|
#
|
||||||
# Location of exectuables:
|
# Location of executables:
|
||||||
test -x "$NFS_MOUNTD" || NFS_MOUNTD=/usr/sbin/mountd
|
test -x "$NFS_MOUNTD" || NFS_MOUNTD=/usr/sbin/mountd
|
||||||
test -x "$NFS_NFSD" || NFS_NFSD=/usr/sbin/nfsd
|
test -x "$NFS_NFSD" || NFS_NFSD=/usr/sbin/nfsd
|
||||||
|
test -x "$NFS_STATD" || NFS_STATD=/usr/sbin/statd
|
||||||
#
|
#
|
||||||
# The user mode program must also exist (it just starts the kernel
|
# The user mode program must also exist (it just starts the kernel
|
||||||
# threads using the kernel module code).
|
# threads using the kernel module code).
|
||||||
@@ -104,6 +105,20 @@ stop_nfsd(){
|
|||||||
echo failed
|
echo failed
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#statd
|
||||||
|
start_statd(){
|
||||||
|
echo -n "starting statd: "
|
||||||
|
start-stop-daemon --start --exec "$NFS_STATD"
|
||||||
|
echo done
|
||||||
|
}
|
||||||
|
stop_statd(){
|
||||||
|
# WARNING: this kills any process with the executable
|
||||||
|
# name 'statd'.
|
||||||
|
echo -n 'stopping statd: '
|
||||||
|
start-stop-daemon --stop --quiet --signal 1 --name statd
|
||||||
|
echo done
|
||||||
|
}
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# supported options:
|
# supported options:
|
||||||
@@ -116,15 +131,19 @@ case "$1" in
|
|||||||
start) create_directories
|
start) create_directories
|
||||||
start_nfsd "$NFS_SERVERS"
|
start_nfsd "$NFS_SERVERS"
|
||||||
start_mountd
|
start_mountd
|
||||||
|
start_statd
|
||||||
test -r /etc/exports && exportfs -a;;
|
test -r /etc/exports && exportfs -a;;
|
||||||
stop) exportfs -ua
|
stop) exportfs -ua
|
||||||
|
stop_statd
|
||||||
stop_mountd
|
stop_mountd
|
||||||
stop_nfsd;;
|
stop_nfsd;;
|
||||||
reload) test -r /etc/exports && exportfs -r;;
|
reload) test -r /etc/exports && exportfs -r;;
|
||||||
restart)exportfs -ua
|
restart)exportfs -ua
|
||||||
stop_mountd
|
stop_mountd
|
||||||
|
stop_statd
|
||||||
# restart does not restart the kernel threads,
|
# restart does not restart the kernel threads,
|
||||||
# only the user mode processes
|
# only the user mode processes
|
||||||
start_mountd
|
start_mountd
|
||||||
|
start_statd
|
||||||
test -r /etc/exports && exportfs -a;;
|
test -r /etc/exports && exportfs -a;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ DESCRIPTION = "userspace utilities for kernel nfs"
|
|||||||
PRIORITY = "optional"
|
PRIORITY = "optional"
|
||||||
SECTION = "console/network"
|
SECTION = "console/network"
|
||||||
LICENSE = "GPL"
|
LICENSE = "GPL"
|
||||||
PR = "r11"
|
PR = "r12"
|
||||||
|
|
||||||
SRC_URI = "${SOURCEFORGE_MIRROR}/nfs/nfs-utils-${PV}.tar.gz \
|
SRC_URI = "${SOURCEFORGE_MIRROR}/nfs/nfs-utils-${PV}.tar.gz \
|
||||||
file://acinclude-lossage.patch;patch=1 \
|
file://acinclude-lossage.patch;patch=1 \
|
||||||
|
|||||||
Reference in New Issue
Block a user