[lkml]   [2001]   [Aug]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectCould NFS daemons be started via inetd?

I am setting up NFS on my Linux box.
When I start server daemons from init scripts or by hand,
everything is working fine.

I tried to arrange these daemons to be run by inetd
but after I issue an NFS mount command inetd starts spawning
tons on rpc.mountd daemons. Log is filled with:
rpc.mountd[179]: connect from
rpc.mountd[180]: connect from
and load average goes up (went up to 40)
I repeatedly killall'ed rpc.mountd and eventually inetd
noticed failing service and disabled it.

Does anybody tried this? If you do, I am very interested in your
inetd.conf and/or NFS part of startup script. Mine is:

# NFS daemons (FIXME: not working)
rquotad/1-2 dgram rpc/udp wait root /usr/sbin/tcpd /usr/sbin/rpc.rquotad
nfs/2-3 dgram rpc/udp wait root /usr/sbin/tcpd /usr/sbin/rpc.nfsd
mountd/1-3 dgram rpc/udp wait root /usr/sbin/tcpd /usr/sbin/rpc.mountd
nlockmgr/1-4 dgram rpc/udp wait root /usr/sbin/tcpd /usr/sbin/rpc.lockd
rstatd/1-3 dgram rpc/udp wait root /usr/sbin/tcpd /usr/sbin/rpc.rstatd

init script
echo "* Starting NFS services:"
echo " DEBUG: modprobe nfsd"
modprobe nfsd
echo " DEBUG: exportfs -r - I will convert /etc/exports to /var/lib/nfs/* conv"
/usr/sbin/exportfs -r # Does /etc/exports -> /var/lib/nfs/* conv
echo " DEBUG: rpc.rquotad - needed?"
echo " DEBUG: rpc.nfsd 1 - 1 server started"
/usr/sbin/rpc.nfsd 1
echo " DEBUG: rpc.mountd - listen to mount requests"
# With newer kernels, this starts by itself, but this won't hurt:
#echo " DEBUG: rpc.lockd"
echo " DEBUG: rpc.statd - lock recovery after crash/reboot?"

kernel: 2.4.5

Please CC me. I'm not on the list.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:57    [W:0.042 / U:0.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site