From 21c4f704982c6789270adcf387dd9111e9a68aca Mon Sep 17 00:00:00 2001 From: Derek Kaser <11674153+dkaser@users.noreply.github.com> Date: Mon, 16 Dec 2024 04:39:20 +0000 Subject: [PATCH] fix: stop knfsd by setting threads to 0 --- etc/rc.d/rc.nfsd | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/etc/rc.d/rc.nfsd b/etc/rc.d/rc.nfsd index a06726753..3f47beea0 100755 --- a/etc/rc.d/rc.nfsd +++ b/etc/rc.d/rc.nfsd @@ -105,9 +105,7 @@ nfsd_stop(){ REPLY="Already stopped" else killall --ns $$ rpc.mountd 2>/dev/null - killall --ns $$ nfsd 2>/dev/null - sleep 1 - killall --ns $$ -9 nfsd 2>/dev/null + run $NFSD 0 killall --ns $$ rpc.rquotad 2>/dev/null run $EXPORTFS -au if ! nfsd_running; then REPLY="Stopped"; else REPLY="Failed"; fi