[oe-commits] org.oe.dev nfs-utils: start/stop also statd so clients will be able to do locking (Taken from Poky -r2578) - close #2799
hrw commit
openembedded-commits at lists.openembedded.org
Tue Aug 28 17:38:41 UTC 2007
nfs-utils: start/stop also statd so clients will be able to do locking (Taken from Poky -r2578) - close #2799
Author: hrw at openembedded.org
Branch: org.openembedded.dev
Revision: 893542e48954804c96a716027237dc29c119d78b
ViewMTN: http://monotone.openembedded.org/revision.psp?id=893542e48954804c96a716027237dc29c119d78b
Files:
1
packages/nfs-utils/files/nfsserver
packages/nfs-utils/nfs-utils_1.0.6.bb
Diffs:
#
# mt diff -r70b02d132fb51f5c710ded2c7adf2859cae020ee -r893542e48954804c96a716027237dc29c119d78b
#
#
#
# patch "packages/nfs-utils/files/nfsserver"
# from [5454ac3fd91ed5808ee8763a87a4124e1486c4d2]
# to [3d1fb45332283d80941c8d626c26629e8342ded3]
#
# patch "packages/nfs-utils/nfs-utils_1.0.6.bb"
# from [1c13e83f5cf4f209f13d10a936b670fe6e616b6b]
# to [f6672e7d69876890a7540b482e7718145dc77f80]
#
============================================================
--- packages/nfs-utils/files/nfsserver 5454ac3fd91ed5808ee8763a87a4124e1486c4d2
+++ packages/nfs-utils/files/nfsserver 3d1fb45332283d80941c8d626c26629e8342ded3
@@ -7,9 +7,10 @@ test -r /etc/default/nfsd && . /etc/defa
# Other control variables may be overridden here too
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_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
# threads using the kernel module code).
@@ -104,6 +105,20 @@ stop_nfsd(){
echo failed
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:
@@ -116,15 +131,19 @@ start) create_directories
start) create_directories
start_nfsd "$NFS_SERVERS"
start_mountd
+ start_statd
test -r /etc/exports && exportfs -a;;
stop) exportfs -ua
+ stop_statd
stop_mountd
stop_nfsd;;
reload) test -r /etc/exports && exportfs -r;;
restart)exportfs -ua
stop_mountd
+ stop_statd
# restart does not restart the kernel threads,
# only the user mode processes
start_mountd
+ start_statd
test -r /etc/exports && exportfs -a;;
esac
============================================================
--- packages/nfs-utils/nfs-utils_1.0.6.bb 1c13e83f5cf4f209f13d10a936b670fe6e616b6b
+++ packages/nfs-utils/nfs-utils_1.0.6.bb f6672e7d69876890a7540b482e7718145dc77f80
@@ -1,8 +1,8 @@ LICENSE = "GPL"
DESCRIPTION = "userspace utilities for kernel nfs"
PRIORITY = "optional"
SECTION = "console/network"
LICENSE = "GPL"
-PR = "r11"
+PR = "r12"
SRC_URI = "${SOURCEFORGE_MIRROR}/nfs/nfs-utils-${PV}.tar.gz \
file://acinclude-lossage.patch;patch=1 \
More information about the Openembedded-commits
mailing list