summaryrefslogtreecommitdiffstats
path: root/meta/packages/nfs-utils
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2007-08-28 12:59:46 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2007-08-28 12:59:46 +0000
commit8f041c74237fd7103e53bd78e217ec4e145207b2 (patch)
treed85ce03a6a8b90d4d1d5e4c01253a4c4ebf64514 /meta/packages/nfs-utils
parent1039c726d869564027b97e6082a5178c6aefa627 (diff)
downloadpoky-8f041c74237fd7103e53bd78e217ec4e145207b2.tar.gz
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
Diffstat (limited to 'meta/packages/nfs-utils')
-rw-r--r--meta/packages/nfs-utils/files/nfsserver21
-rw-r--r--meta/packages/nfs-utils/nfs-utils_1.0.6.bb2
2 files changed, 21 insertions, 2 deletions
diff --git a/meta/packages/nfs-utils/files/nfsserver b/meta/packages/nfs-utils/files/nfsserver
index bb16806ed9..0e9d7be787 100644
--- a/meta/packages/nfs-utils/files/nfsserver
+++ b/meta/packages/nfs-utils/files/nfsserver
@@ -7,9 +7,10 @@
7# Other control variables may be overridden here too 7# Other control variables may be overridden here too
8test -r /etc/default/nfsd && . /etc/default/nfsd 8test -r /etc/default/nfsd && . /etc/default/nfsd
9# 9#
10# Location of exectuables: 10# Location of executables:
11test -x "$NFS_MOUNTD" || NFS_MOUNTD=/usr/sbin/mountd 11test -x "$NFS_MOUNTD" || NFS_MOUNTD=/usr/sbin/mountd
12test -x "$NFS_NFSD" || NFS_NFSD=/usr/sbin/nfsd 12test -x "$NFS_NFSD" || NFS_NFSD=/usr/sbin/nfsd
13test -x "$NFS_STATD" || NFS_STATD=/usr/sbin/statd
13# 14#
14# The user mode program must also exist (it just starts the kernel 15# The user mode program must also exist (it just starts the kernel
15# threads using the kernel module code). 16# threads using the kernel module code).
@@ -104,6 +105,20 @@ stop_nfsd(){
104 echo failed 105 echo failed
105 fi 106 fi
106} 107}
108
109#statd
110start_statd(){
111 echo -n "starting statd: "
112 start-stop-daemon --start --exec "$NFS_STATD"
113 echo done
114}
115stop_statd(){
116 # WARNING: this kills any process with the executable
117 # name 'statd'.
118 echo -n 'stopping statd: '
119 start-stop-daemon --stop --quiet --signal 1 --name statd
120 echo done
121}
107#---------------------------------------------------------------------- 122#----------------------------------------------------------------------
108# 123#
109# supported options: 124# supported options:
@@ -116,15 +131,19 @@ case "$1" in
116start) create_directories 131start) create_directories
117 start_nfsd "$NFS_SERVERS" 132 start_nfsd "$NFS_SERVERS"
118 start_mountd 133 start_mountd
134 start_statd
119 test -r /etc/exports && exportfs -a;; 135 test -r /etc/exports && exportfs -a;;
120stop) exportfs -ua 136stop) exportfs -ua
137 stop_statd
121 stop_mountd 138 stop_mountd
122 stop_nfsd;; 139 stop_nfsd;;
123reload) test -r /etc/exports && exportfs -r;; 140reload) test -r /etc/exports && exportfs -r;;
124restart)exportfs -ua 141restart)exportfs -ua
125 stop_mountd 142 stop_mountd
143 stop_statd
126 # restart does not restart the kernel threads, 144 # restart does not restart the kernel threads,
127 # only the user mode processes 145 # only the user mode processes
128 start_mountd 146 start_mountd
147 start_statd
129 test -r /etc/exports && exportfs -a;; 148 test -r /etc/exports && exportfs -a;;
130esac 149esac
diff --git a/meta/packages/nfs-utils/nfs-utils_1.0.6.bb b/meta/packages/nfs-utils/nfs-utils_1.0.6.bb
index fbc2a96a3c..15e3914472 100644
--- a/meta/packages/nfs-utils/nfs-utils_1.0.6.bb
+++ b/meta/packages/nfs-utils/nfs-utils_1.0.6.bb
@@ -2,7 +2,7 @@ DESCRIPTION = "userspace utilities for kernel nfs"
2PRIORITY = "optional" 2PRIORITY = "optional"
3SECTION = "console/network" 3SECTION = "console/network"
4LICENSE = "GPL" 4LICENSE = "GPL"
5PR = "r11" 5PR = "r12"
6 6
7SRC_URI = "${SOURCEFORGE_MIRROR}/nfs/nfs-utils-${PV}.tar.gz \ 7SRC_URI = "${SOURCEFORGE_MIRROR}/nfs/nfs-utils-${PV}.tar.gz \
8 file://acinclude-lossage.patch;patch=1 \ 8 file://acinclude-lossage.patch;patch=1 \