diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-09-19 14:16:11 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-09-26 17:22:17 +0200 |
commit | 053558bc5cd1944a6ac271cbccd9514a116e00f2 (patch) | |
tree | ddb381ed8dfe51d2390e42ddadab61d1ee9fa4fd /package/nfs-utils | |
parent | 883ee0df764eea2770e972be34fe1188cd1da267 (diff) |
nfs-utils: finetuning startup script
Diffstat (limited to 'package/nfs-utils')
-rw-r--r-- | package/nfs-utils/Makefile | 1 | ||||
-rw-r--r-- | package/nfs-utils/files/nfsd.init | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/package/nfs-utils/Makefile b/package/nfs-utils/Makefile index faec335c7..339ace1e9 100644 --- a/package/nfs-utils/Makefile +++ b/package/nfs-utils/Makefile @@ -23,6 +23,7 @@ PKGSD_NFS_UTILS_CLIENT:=client utilities PKGSN_NFS_UTILS_CLIENT:=nfs-utils PKGSD_NFS_UTILS_SERVER:=server daemons and utilities PKGSN_NFS_UTILS_SERVER:=nfs-utils +PKGSK_NFS_UTILS_SERVER:=nfsd PKG_CHOICES_NFS_UTILS:= V3 V4 PKGCD_V3:= nfs version 3 diff --git a/package/nfs-utils/files/nfsd.init b/package/nfs-utils/files/nfsd.init index 2699b9dc3..21b1a495b 100644 --- a/package/nfs-utils/files/nfsd.init +++ b/package/nfs-utils/files/nfsd.init @@ -17,6 +17,7 @@ start) touch /var/lib/nfs/etab touch /var/lib/nfs/xtab touch /var/lib/nfs/sm + mount -t nfsd nfsd /proc/fs/nfsd chown nfs:nfs /var/lib/nfs/sm /usr/sbin/nfsd 4 /usr/sbin/mountd @@ -30,6 +31,7 @@ start) ;; stop) kill $(pgrep -f /usr/sbin/mountd) + umount /proc/fs/nfsd if [ ${nfs_server_version} -eq 4 ];then kill $(pgrep -f /usr/sbin/idmapd) kill $(pgrep -f /usr/sbin/svcgssd) |