diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-08-28 12:59:46 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-08-28 12:59:46 +0000 |
commit | 8f041c74237fd7103e53bd78e217ec4e145207b2 (patch) | |
tree | d85ce03a6a8b90d4d1d5e4c01253a4c4ebf64514 /meta/packages | |
parent | 1039c726d869564027b97e6082a5178c6aefa627 (diff) | |
download | poky-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')
-rw-r--r-- | meta/packages/nfs-utils/files/nfsserver | 21 | ||||
-rw-r--r-- | meta/packages/nfs-utils/nfs-utils_1.0.6.bb | 2 |
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 |
8 | test -r /etc/default/nfsd && . /etc/default/nfsd | 8 | test -r /etc/default/nfsd && . /etc/default/nfsd |
9 | # | 9 | # |
10 | # Location of exectuables: | 10 | # Location of executables: |
11 | test -x "$NFS_MOUNTD" || NFS_MOUNTD=/usr/sbin/mountd | 11 | test -x "$NFS_MOUNTD" || NFS_MOUNTD=/usr/sbin/mountd |
12 | test -x "$NFS_NFSD" || NFS_NFSD=/usr/sbin/nfsd | 12 | test -x "$NFS_NFSD" || NFS_NFSD=/usr/sbin/nfsd |
13 | test -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 | ||
110 | start_statd(){ | ||
111 | echo -n "starting statd: " | ||
112 | start-stop-daemon --start --exec "$NFS_STATD" | ||
113 | echo done | ||
114 | } | ||
115 | stop_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 | |||
116 | start) create_directories | 131 | start) 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;; |
120 | stop) exportfs -ua | 136 | stop) exportfs -ua |
137 | stop_statd | ||
121 | stop_mountd | 138 | stop_mountd |
122 | stop_nfsd;; | 139 | stop_nfsd;; |
123 | reload) test -r /etc/exports && exportfs -r;; | 140 | reload) test -r /etc/exports && exportfs -r;; |
124 | restart)exportfs -ua | 141 | restart)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;; |
130 | esac | 149 | esac |
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" | |||
2 | PRIORITY = "optional" | 2 | PRIORITY = "optional" |
3 | SECTION = "console/network" | 3 | SECTION = "console/network" |
4 | LICENSE = "GPL" | 4 | LICENSE = "GPL" |
5 | PR = "r11" | 5 | PR = "r12" |
6 | 6 | ||
7 | SRC_URI = "${SOURCEFORGE_MIRROR}/nfs/nfs-utils-${PV}.tar.gz \ | 7 | SRC_URI = "${SOURCEFORGE_MIRROR}/nfs/nfs-utils-${PV}.tar.gz \ |
8 | file://acinclude-lossage.patch;patch=1 \ | 8 | file://acinclude-lossage.patch;patch=1 \ |