[Thomas: tweak commit title and author.]
Signed-off-by: Andreas Ehmanns <universeII@gmx.de>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
mkdir -p /run/nfs/sm.bak
touch /run/nfs/rmtab
+CFG_FILE=/etc/default/nfsd
+
+NR_THREADS=2
+if [ -f "${CFG_FILE}" ]; then
+ . "${CFG_FILE}"
+fi
+
+
start() {
# Start daemons.
printf "Starting NFS statd: "
echo "done"
printf "Starting NFS daemon: "
- rpc.nfsd 2
+ rpc.nfsd ${NR_THREADS}
echo "done"
printf "Starting NFS mountd: "
killall -q rpc.mountd
echo "done"
- echo "Shutting down NFS daemon: "
+ printf "Shutting down NFS daemon: "
kill -9 `pidof nfsd` 2>/dev/null
echo "done"