It seems that SIGTERM is not enough for mountd, according to the code SIGTERM only sends a RPCMNT_UMNTALL broadcast to the clients. So I think what we should do in this case is to first send a SIGTERM to mountd, and then SIGKILL it in rc_stop().
On (2011-07-28 09:46), David Coppa wrote: > It doesn't want to die... > > Do you see this problem or is it just mine? > Any clue? > > # /etc/rc.d/mountd start > mountd(ok) > # ps akuwwx|grep -v grep|grep mountd > root 15715 0.0 0.0 616 368 ?? Ss 9:39AM 0:00.00 /sbin/mountd > # /etc/rc.d/nfsd start > nfsd(ok) > # ps akuwwx|grep -v grep|grep nfs > root 11051 0.0 0.0 120 156 ?? S 9:39AM 0:00.00 nfsd: > server (nfsd) > root 9270 0.0 0.0 120 156 ?? S 9:39AM 0:00.00 nfsd: > server (nfsd) > root 10254 0.0 0.0 120 156 ?? S 9:39AM 0:00.00 nfsd: > server (nfsd) > root 20969 0.0 0.0 156 228 ?? Ss 9:39AM 0:00.00 /sbin/nfsd > -tun 4 > root 17010 0.0 0.0 120 156 ?? S 9:39AM 0:00.00 nfsd: > server (nfsd) > # /etc/rc.d/nfsd stop > nfsd(ok) > # ps akuwwx|grep -v grep|grep nfs > # time /etc/rc.d/mountd stop > mountd(failed) > 0m30.32s real 0m0.00s user 0m0.01s system > # ps akuwwx|grep -v grep|grep mountd > root 15715 0.0 0.0 616 388 ?? Ss 9:39AM 0:00.00 /sbin/mountd > # pkill -f /sbin/mountd > # ps akuwwx|grep -v grep|grep mountd > root 15715 0.0 0.0 616 388 ?? Ss 9:39AM 0:00.00 /sbin/mountd > # pkill -9 -f /sbin/mountd > # ps akuwwx|grep -v grep|grep mountd > #