wok-current diff nfs-utils/stuff/etc/init.d/nfsd @ 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 (14 months ago)
parents 2994fe300985
children
line diff
     1.1 --- a/nfs-utils/stuff/etc/init.d/nfsd	Tue Feb 28 14:41:52 2023 +0100
     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: