diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2011-05-05 20:34:07 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2011-05-05 20:34:07 +0200 |
commit | 187b31c0d6f73638d97b061e8df48155bbb1ad12 (patch) | |
tree | 7b49f5a8672536f8ec47e559bd945de815806988 | |
parent | b291d8177ca9f414d230dcf8e19718d0ec9fd29b (diff) | |
download | openembedded-187b31c0d6f73638d97b061e8df48155bbb1ad12.tar.gz |
nfs-utils: remove old versions
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 files changed, 0 insertions, 505 deletions
diff --git a/recipes/nfs-utils/nfs-utils-1.0.6/acinclude-lossage.patch b/recipes/nfs-utils/nfs-utils-1.0.6/acinclude-lossage.patch deleted file mode 100644 index 0d2d7f3824..0000000000 --- a/recipes/nfs-utils/nfs-utils-1.0.6/acinclude-lossage.patch +++ /dev/null @@ -1,142 +0,0 @@ ---- nfs-utils-1.0.6/acinclude.m4.old 2004-11-07 12:28:58.000000000 +0000 -+++ nfs-utils-1.0.6/acinclude.m4 2000-10-11 22:49:45.000000000 +0100 -@@ -0,0 +1,139 @@ -+dnl aclocal.m4 -- custom autoconf macros for various purposes -+dnl Updated for Autoconf v2 -+dnl -+dnl ******** save/restore stuff ********** -+define(AC_KNFSD_SAVE, -+ [AC_LANG_SAVE -+ save_LDFLAGS=$LDFLAGS -+ save_CFLAGS=$CFLAGS -+ save_CXXFLAGS=$CXXFLAGS -+ save_LIBS=$LIBS -+])dnl -+define(AC_KNFSD_RESTORE, -+ [LDFLAGS=$save_LDFLAGS -+ CFLAGS=$save_CFLAGS -+ CXXFLAGS=$save_CXXFLAGS -+ LIBS=$save_LIBS -+ AC_LANG_RESTORE -+])dnl -+dnl *********** GNU libc 2 *************** -+define(AC_GNULIBC, -+ [AC_MSG_CHECKING(for GNU libc2) -+ AC_CACHE_VAL(knfsd_cv_glibc2, -+ [AC_TRY_CPP([ -+ #include <features.h> -+ #if !defined(__GLIBC__) -+ # error Nope -+ #endif], knfsd_cv_glibc2=yes, knfsd_cv_glibc2=no)]) -+ AC_MSG_RESULT($knfsd_cv_glibc2) -+ if test $knfsd_cv_glibc2 = yes; then -+ CFLAGS="$CFLAGS -D_GNU_SOURCE" -+ CXXFLAGS="$CXXFLAGS -D_GNU_SOURCE" -+ fi -+]) dnl -+dnl -+dnl ************* egcs ******************* -+define(AC_PROG_EGCS, -+ [AC_MSG_CHECKING(for egcs) -+ AC_CACHE_VAL(knfsd_cv_prog_EGCS, -+ [case `$CC --version 2>/dev/null` in -+ egcs*) -+ knfsd_cv_prog_EGCS=yes;; -+ *) -+ knfsd_cv_prog_EGCS=no;; -+ esac -+ ]) -+ AC_MSG_RESULT($knfsd_cv_prog_EGCS) -+ test $knfsd_cv_prog_EGCS = yes && AC_DEFINE(HAVE_EGCS) -+]) dnl -+dnl *********** sizeof(dev_t) ************** -+dnl ** We have to kludge this rather than use AC_CHECK_SIZEOF because -+dnl ** we have to include sys/types.h. Ugh. -+define(AC_DEV_T_SIZE, -+ [AC_MSG_CHECKING(size of dev_t) -+ AC_CACHE_VAL(ac_cv_sizeof_dev_t, -+ [AC_TRY_LINK( -+ [#include <stdio.h> -+ #include <sys/types.h> -+ main() -+ { -+ FILE *f=fopen("conftestval", "w"); -+ if (!f) exit(1); -+ fprintf(f, "%d\n", sizeof(dev_t)); -+ exit(0); -+ }], ac_cv_sizeof_dev_t=`cat conftestval`, ac_cv_sizeof_dev_t=0)]) -+ AC_MSG_RESULT($ac_cv_sizeof_dev_t) -+ AC_DEFINE(SIZEOF_DEV_T,$ac_cv_sizeof_dev_t) -+ ]) -+dnl *********** sizeof(xxx_t) ************** -+dnl ** Overwrite the AC_CHECK_SIZEOF macro as we must include sys/types.h -+define([AC_CHECK_SIZEOF], -+ [changequote(<<, >>)dnl -+ define(<<AC_TYPE_NAME>>,translit(sizeof_$1, [a-z *], [A-Z_P]))dnl -+ define(<<AC_CV_NAME>>, translit(ac_cv_sizeof_$1, [ *], [_p]))dnl -+ changequote([, ])dnl -+ AC_MSG_CHECKING(size of $1) -+ AC_CACHE_VAL(AC_CV_NAME, -+ [AC_TRY_RUN( -+ [#include <stdio.h> -+ #include <sys/types.h> -+ main() -+ { -+ FILE *f=fopen("conftestval", "w"); -+ if (!f) exit(1); -+ fprintf(f, "%d\n", sizeof($1)); -+ exit(0); -+ }], AC_CV_NAME=`cat conftestval`, AC_CV_NAME=0)]) -+ AC_MSG_RESULT($AC_CV_NAME) -+ AC_DEFINE_UNQUOTED(AC_TYPE_NAME,$AC_CV_NAME) -+ undefine([AC_TYPE_NAME])dnl -+ undefine([AC_CV_NAME])dnl -+ ]) -+dnl *********** BSD vs. POSIX signal handling ************** -+define([AC_BSD_SIGNALS], -+ [AC_MSG_CHECKING(for BSD signal semantics) -+ AC_CACHE_VAL(knfsd_cv_bsd_signals, -+ [AC_TRY_RUN([ -+ #include <signal.h> -+ #include <unistd.h> -+ #include <sys/wait.h> -+ -+ static int counter = 0; -+ static RETSIGTYPE handler(int num) { counter++; } -+ -+ int main() -+ { -+ int s; -+ if ((s = fork()) < 0) return 1; -+ if (s != 0) { -+ if (wait(&s) < 0) return 1; -+ return WIFSIGNALED(s)? 1 : 0; -+ } -+ -+ signal(SIGHUP, handler); -+ kill(getpid(), SIGHUP); kill(getpid(), SIGHUP); -+ return (counter == 2)? 0 : 1; -+ } -+ ], knfsd_cv_bsd_signals=yes, knfsd_cv_bsd_signals=no)]) dnl -+ AC_MSG_RESULT($knfsd_cv_bsd_signals) -+ test $knfsd_cv_bsd_signals = yes && AC_DEFINE(HAVE_BSD_SIGNALS) -+])dnl -+dnl *********** the tcp wrapper library *************** -+define(AC_TCP_WRAPPER, -+ [AC_MSG_CHECKING(for the tcp wrapper library) -+ AC_CACHE_VAL(knfsd_cv_tcp_wrapper, -+ [old_LIBS="$LIBS" -+ LIBS="$LIBS -lwrap $LIBNSL" -+ AC_TRY_LINK([ -+ int deny_severity = 0; -+ int allow_severity = 0;], -+ [return hosts_ctl ("nfsd", "", "")], -+ knfsd_cv_tcp_wrapper=yes, knfsd_cv_tcp_wrapper=no) -+ LIBS="$old_LIBS"]) -+ AC_MSG_RESULT($knfsd_cv_tcp_wrapper) -+ if test "$knfsd_cv_tcp_wrapper" = yes; then -+ CFLAGS="$CFLAGS -DHAVE_TCP_WRAPPER" -+ CXXFLAGS="$CXXFLAGS -DHAVE_TCP_WRAPPER" -+ LIBWRAP="-lwrap" -+ fi -+]) dnl diff --git a/recipes/nfs-utils/nfs-utils-1.0.6/forgotten-defines b/recipes/nfs-utils/nfs-utils-1.0.6/forgotten-defines deleted file mode 100644 index a18333100d..0000000000 --- a/recipes/nfs-utils/nfs-utils-1.0.6/forgotten-defines +++ /dev/null @@ -1,5 +0,0 @@ - -/* This defines the location of the NFS state files - * Warning: these must match definitions in config.mk! - */ -#define NFS_STATEDIR "/var/lib/nfs" diff --git a/recipes/nfs-utils/nfs-utils-1.0.6/kernel-2.6.18+.patch b/recipes/nfs-utils/nfs-utils-1.0.6/kernel-2.6.18+.patch deleted file mode 100644 index 219bed094b..0000000000 --- a/recipes/nfs-utils/nfs-utils-1.0.6/kernel-2.6.18+.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- nfs-utils-1.0.6/tools/getkversion/getkversion.c.orig 2007-02-22 12:33:54.000000000 +0000 -+++ nfs-utils-1.0.6/tools/getkversion/getkversion.c 2007-02-22 12:33:56.000000000 +0000 -@@ -12,6 +12,10 @@ - int - main(void) /* This is for Dan Popp ;) */ - { -+ -+#ifdef UTS_RELEASE - printf("%s\n", UTS_RELEASE); -+#endif -+ - return 0; - } diff --git a/recipes/nfs-utils/nfs-utils-1.0.6/rpcgen-lossage.patch b/recipes/nfs-utils/nfs-utils-1.0.6/rpcgen-lossage.patch deleted file mode 100644 index d1e1fb700d..0000000000 --- a/recipes/nfs-utils/nfs-utils-1.0.6/rpcgen-lossage.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- nfs-utils-1.0.6/config.mk.in.old 2004-11-07 12:30:05.000000000 +0000 -+++ nfs-utils-1.0.6/config.mk.in 2004-11-07 12:30:19.000000000 +0000 -@@ -52,7 +52,7 @@ - LN_S = ln -sf - RANLIB = @RANLIB@ - INDENT = indent --RPCGEN = $(TOP)bin/rpcgen -+RPCGEN = rpcgen - GETKVER = $(TOP)tools/getkversion - INSTALL = install - MAN2PS = groff -Tps -man diff --git a/recipes/nfs-utils/nfs-utils-1.0.6/stat-include.patch b/recipes/nfs-utils/nfs-utils-1.0.6/stat-include.patch deleted file mode 100644 index d0ae022461..0000000000 --- a/recipes/nfs-utils/nfs-utils-1.0.6/stat-include.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- nfs-utils-1.0.6/utils/statd/statd.c~ 2003-09-11 20:24:29.000000000 -1000 -+++ nfs-utils-1.0.6/utils/statd/statd.c 2005-03-27 03:11:03.025582700 -1000 -@@ -19,6 +19,7 @@ - #include <rpc/pmap_clnt.h> - #include <rpcmisc.h> - #include <sys/resource.h> -+#include <sys/stat.h> - #include <grp.h> - #include "statd.h" - #include "version.h" - diff --git a/recipes/nfs-utils/nfs-utils-1.1.2/nfs-utils-S_ISREG-missing-include.patch b/recipes/nfs-utils/nfs-utils-1.1.2/nfs-utils-S_ISREG-missing-include.patch deleted file mode 100644 index 6b2c75e7a8..0000000000 --- a/recipes/nfs-utils/nfs-utils-1.1.2/nfs-utils-S_ISREG-missing-include.patch +++ /dev/null @@ -1,33 +0,0 @@ -diff -uNr nfs-utils-1.1.2.orig//utils/exportfs/exportfs.c nfs-utils-1.1.2/utils/exportfs/exportfs.c ---- nfs-utils-1.1.2.orig//utils/exportfs/exportfs.c 2008-03-14 16:46:29.000000000 +0100 -+++ nfs-utils-1.1.2/utils/exportfs/exportfs.c 2010-05-26 10:31:23.000000000 +0200 -@@ -19,6 +19,7 @@ - #include <getopt.h> - #include <netdb.h> - #include <errno.h> -+#include <sys/stat.h> - #include "xmalloc.h" - #include "misc.h" - #include "nfslib.h" -diff -uNr nfs-utils-1.1.2.orig//utils/mount/mount.c nfs-utils-1.1.2/utils/mount/mount.c ---- nfs-utils-1.1.2.orig//utils/mount/mount.c 2008-03-14 16:46:29.000000000 +0100 -+++ nfs-utils-1.1.2/utils/mount/mount.c 2010-05-26 10:31:32.000000000 +0200 -@@ -24,6 +24,7 @@ - - #include <unistd.h> - #include <sys/types.h> -+#include <sys/stat.h> - #include <stdio.h> - #include <string.h> - #include <errno.h> -diff -uNr nfs-utils-1.1.2.orig//utils/mount/network.c nfs-utils-1.1.2/utils/mount/network.c ---- nfs-utils-1.1.2.orig//utils/mount/network.c 2008-03-14 16:46:29.000000000 +0100 -+++ nfs-utils-1.1.2/utils/mount/network.c 2010-05-26 10:31:35.000000000 +0200 -@@ -37,6 +37,7 @@ - #include <rpc/pmap_prot.h> - #include <rpc/pmap_clnt.h> - #include <sys/socket.h> -+#include <sys/stat.h> - - #include "xcommon.h" - #include "mount.h" diff --git a/recipes/nfs-utils/nfs-utils-1.1.2/nfs-utils-tools-unset-cflags.patch b/recipes/nfs-utils/nfs-utils-1.1.2/nfs-utils-tools-unset-cflags.patch deleted file mode 100644 index 16bdebf12e..0000000000 --- a/recipes/nfs-utils/nfs-utils-1.1.2/nfs-utils-tools-unset-cflags.patch +++ /dev/null @@ -1,92 +0,0 @@ -Index: nfs-utils-1.1.2/tools/Makefile.am -=================================================================== ---- nfs-utils-1.1.2.orig/tools/Makefile.am 2008-03-14 08:46:29.000000000 -0700 -+++ nfs-utils-1.1.2/tools/Makefile.am 2009-03-04 01:58:50.000000000 -0800 -@@ -5,7 +5,10 @@ - if CONFIG_RPCGEN - OPTDIRS += rpcgen - endif -- -+CFLAGS=$(CFLAGS_FOR_BUILD) -+CPPFLAGS=$(CPPFLAGS_FOR_BUILD) -+CXXFLAGS=$(CXXFLAGS_FOR_BUILD) -+LDFLAGS=$(LDFLAGS_FOR_BUILD) - SUBDIRS = locktest rpcdebug nlmtest $(OPTDIRS) - - MAINTAINERCLEANFILES = Makefile.in -Index: nfs-utils-1.1.2/tools/locktest/Makefile.am -=================================================================== ---- nfs-utils-1.1.2.orig/tools/locktest/Makefile.am 2008-03-14 08:46:29.000000000 -0700 -+++ nfs-utils-1.1.2/tools/locktest/Makefile.am 2009-03-04 01:58:50.000000000 -0800 -@@ -1,12 +1,13 @@ - ## Process this file with automake to produce Makefile.in - - CC=$(CC_FOR_BUILD) -+CFLAGS=$(CFLAGS_FOR_BUILD) -+CPPFLAGS=$(CPPFLAGS_FOR_BUILD) -+CXXFLAGS=$(CXXFLAGS_FOR_BUILD) -+LDFLAGS=$(LDFLAGS_FOR_BUILD) - LIBTOOL = @LIBTOOL@ --tag=CC - - noinst_PROGRAMS = testlk - testlk_SOURCES = testlk.c --testlk_CFLAGS=$(CFLAGS_FOR_BUILD) --testlk_CPPFLAGS=$(CPPFLAGS_FOR_BUILD) --testlk_LDFLAGS=$(LDFLAGS_FOR_BUILD) - - MAINTAINERCLEANFILES = Makefile.in -Index: nfs-utils-1.1.2/tools/nlmtest/Makefile.am -=================================================================== ---- nfs-utils-1.1.2.orig/tools/nlmtest/Makefile.am 2008-03-14 08:46:29.000000000 -0700 -+++ nfs-utils-1.1.2/tools/nlmtest/Makefile.am 2009-03-04 01:58:50.000000000 -0800 -@@ -1,5 +1,8 @@ - ## Process this file with automake to produce Makefile.in -- -+CFLAGS=$(CFLAGS_FOR_BUILD) -+CPPFLAGS=$(CPPFLAGS_FOR_BUILD) -+CXXFLAGS=$(CXXFLAGS_FOR_BUILD) -+LDFLAGS=$(LDFLAGS_FOR_BUILD) - EXTRA_DIST = \ - README \ - host.h \ -Index: nfs-utils-1.1.2/tools/rpcgen/Makefile.am -=================================================================== ---- nfs-utils-1.1.2.orig/tools/rpcgen/Makefile.am 2008-03-14 08:46:29.000000000 -0700 -+++ nfs-utils-1.1.2/tools/rpcgen/Makefile.am 2009-03-04 01:58:50.000000000 -0800 -@@ -1,6 +1,10 @@ - ## Process this file with automake to produce Makefile.in - - CC=$(CC_FOR_BUILD) -+CFLAGS=$(CFLAGS_FOR_BUILD) -+CPPFLAGS=$(CPPFLAGS_FOR_BUILD) -+CXXFLAGS=$(CXXFLAGS_FOR_BUILD) -+LDFLAGS=$(LDFLAGS_FOR_BUILD) - LIBTOOL = @LIBTOOL@ --tag=CC - - noinst_PROGRAMS = rpcgen -@@ -9,10 +13,6 @@ - rpc_util.c rpc_sample.c rpc_output.h rpc_parse.h \ - rpc_scan.h rpc_util.h - --rpcgen_CFLAGS=$(CFLAGS_FOR_BUILD) --rpcgen_CPPLAGS=$(CPPFLAGS_FOR_BUILD) --rpcgen_LDFLAGS=$(LDFLAGS_FOR_BUILD) -- - MAINTAINERCLEANFILES = Makefile.in - - EXTRA_DIST = rpcgen.new.1 -Index: nfs-utils-1.1.2/tools/rpcdebug/Makefile.am -=================================================================== ---- nfs-utils-1.1.2.orig/tools/rpcdebug/Makefile.am 2009-03-04 02:01:41.000000000 -0800 -+++ nfs-utils-1.1.2/tools/rpcdebug/Makefile.am 2009-03-04 02:02:42.000000000 -0800 -@@ -1,6 +1,10 @@ - ## Process this file with automake to produce Makefile.in - - CC=$(CC_FOR_BUILD) -+CFLAGS=$(CFLAGS_FOR_BUILD) -+CPPFLAGS=$(CPPFLAGS_FOR_BUILD) -+CXXFLAGS=$(CXXFLAGS_FOR_BUILD) -+LDFLAGS=$(LDFLAGS_FOR_BUILD) - LIBTOOL = @LIBTOOL@ --tag=CC - - man8_MANS = rpcdebug.man diff --git a/recipes/nfs-utils/nfs-utils-1.1.2/nfs-utils-uclibc-compile.patch b/recipes/nfs-utils/nfs-utils-1.1.2/nfs-utils-uclibc-compile.patch deleted file mode 100644 index f242eade45..0000000000 --- a/recipes/nfs-utils/nfs-utils-1.1.2/nfs-utils-uclibc-compile.patch +++ /dev/null @@ -1,49 +0,0 @@ ---- a/support/nfs/svc_socket.c.org 2007-05-11 03:40:57 +0000 -+++ b/support/nfs/svc_socket.c 2007-10-24 15:20:05 +0000 -@@ -67,8 +67,13 @@ - memset (&addr, 0, sizeof (addr)); - addr.sin_family = AF_INET; - -+#ifdef __UCLIBC__ -+ rpcp = getrpcbynumber (number); -+ ret = 0; -+#else - ret = getrpcbynumber_r (number, &rpcbuf, rpcdata, sizeof rpcdata, - &rpcp); -+#endif - if (ret == 0 && rpcp != NULL) - { - /* First try name. */ ---- a/utils/mountd/cache.c.org 2007-05-11 03:40:57 +0000 -+++ b/utils/mountd/cache.c 2007-10-24 15:21:53 +0000 -@@ -131,6 +131,7 @@ - pw = getpwuid(uid); - if (!pw) - rv = -1; -+#ifndef __UCLIBC__ - else { - rv = getgrouplist(pw->pw_name, pw->pw_gid, groups, &ngroups); - if (rv == -1 && ngroups >= 100) { -@@ -142,6 +143,7 @@ - groups, &ngroups); - } - } -+#endif - qword_printint(f, uid); - qword_printint(f, time(0)+30*60); - if (rv >= 0) { ---- a/tools/rpcgen/rpc_cout.c.org 2007-05-11 03:40:57 +0000 -+++ b/tools/rpcgen/rpc_cout.c 2007-10-24 15:23:17 +0000 -@@ -647,7 +647,11 @@ - int freed=0; - - if(flag == PUT) -+#ifdef __UCLIBC__ -+ f_print(fout,"\t\t IXDR_PUT_"); -+#else - f_print(fout,"\t\t (void) IXDR_PUT_"); -+#endif - else - if(rel== REL_ALIAS) - f_print(fout,"\t\t objp->%s = IXDR_GET_",decl->name); - diff --git a/recipes/nfs-utils/nfs-utils-1.1.2/nfsserver b/recipes/nfs-utils/nfs-utils-1.1.2/nfsserver deleted file mode 100644 index b4c7662ce0..0000000000 --- a/recipes/nfs-utils/nfs-utils-1.1.2/nfsserver +++ /dev/null @@ -1,149 +0,0 @@ -#!/bin/sh -# -# Startup script for nfs-utils -# -# -# The environment variable NFS_SERVERS may be set in /etc/default/nfsd -# Other control variables may be overridden here too -test -r /etc/default/nfsd && . /etc/default/nfsd -# -# Location of executables: -test -x "$NFS_MOUNTD" || NFS_MOUNTD=/usr/sbin/rpc.mountd -test -x "$NFS_NFSD" || NFS_NFSD=/usr/sbin/rpc.nfsd -test -x "$NFS_STATD" || NFS_STATD=/usr/sbin/rpc.statd -# -# The user mode program must also exist (it just starts the kernel -# threads using the kernel module code). -test -x "$NFS_MOUNTD" || exit 0 -test -x "$NFS_NFSD" || exit 0 -# -# Default is 8 threads, value is settable between 1 and the truely -# ridiculous 99 -test "$NFS_SERVERS" -gt 0 && test "$NFS_SERVERS" -lt 100 || NFS_SERVERS=8 -# -# The default state directory is /var/lib/nfs -test -n "$NFS_STATEDIR" || NFS_STATEDIR=/var/lib/nfs -# -#---------------------------------------------------------------------- -# Startup and shutdown functions. -# Actual startup/shutdown is at the end of this file. -#directories -create_directories(){ - echo -n 'creating NFS state directory: ' - mkdir -p "$NFS_STATEDIR" - ( cd "$NFS_STATEDIR" - umask 077 - mkdir -p sm sm.bak - test -w sm/state || { - rm -f sm/state - :>sm/state - } - umask 022 - for file in xtab etab smtab rmtab - do - test -w "$file" || { - rm -f "$file" - :>"$file" - } - done - ) - echo done -} -#mountd -start_mountd(){ - echo -n 'starting mountd: ' - start-stop-daemon --start --exec "$NFS_MOUNTD" -- "-f /etc/exports $@" - echo done -} -stop_mountd(){ - echo -n 'stopping mountd: ' - start-stop-daemon --stop --quiet --exec "$NFS_MOUNTD" - echo done -} -# -#nfsd -start_nfsd(){ - echo -n "starting $1 nfsd kernel threads: " - start-stop-daemon --start --exec "$NFS_NFSD" -- "$@" - echo done -} -delay_nfsd(){ - for delay in 0 1 2 3 4 5 6 7 8 9 - do - if pidof nfsd >/dev/null - then - echo -n . - sleep 1 - else - return 0 - fi - done - return 1 -} -stop_nfsd(){ - # WARNING: this kills any process with the executable - # name 'nfsd'. - echo -n 'stopping nfsd: ' - start-stop-daemon --stop --quiet --signal 1 --name nfsd - if delay_nfsd || { - echo failed - echo ' using signal 9: ' - start-stop-daemon --stop --quiet --signal 9 --name nfsd - delay_nfsd - } - then - echo done - # This will remove, recursively, dependencies - echo -n 'removing nfsd kernel module: ' - if modprobe -r nfsd - then - echo done - else - echo failed - fi - else - 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: -# start -# stop -# reload: reloads the exports file -# restart: stops and starts mountd -#FIXME: need to create the /var/lib/nfs/... directories -case "$1" in -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 |