wok-current rev 25551
nfs-utils: make nfsd work on first start too
author | Hans-G?nter Theisgen |
---|---|
date | Thu Apr 06 10:52:37 2023 +0100 (21 months ago) |
parents | f40d97a52c42 |
children | 976aaa1af0d2 |
files | nfs-utils/stuff/etc/init.d/nfsd |
line diff
1.1 --- a/nfs-utils/stuff/etc/init.d/nfsd Mon Apr 03 16:35:42 2023 +0000 1.2 +++ b/nfs-utils/stuff/etc/init.d/nfsd Thu Apr 06 10:52:37 2023 +0100 1.3 @@ -24,6 +24,11 @@ 1.4 exit 1 1.5 fi 1.6 action 'Starting %s: %s...' "$DESC" $NAME 1.7 + # Make sure module nfsd is loaded: 1.8 + modprobe nfsd 1.9 + # Mount nfsd when not already mounted: 1.10 + mount|grep -q /proc/fs/nfsd || 1.11 + mount -t nfsd nfsd /proc/fs/nfsd 1.12 # Start rpcbind when not already running: 1.13 [ -n "$(pidof rpcbind)" ] || rpcbind 1.14 # Export directories specified in /etc/exports: