> if pidof nfsd 2>&1 > /dev/null ; then { > rpc.nfsd -- 0 > sleep 1 > if pidof nfsd 2>&1 > /dev/null ; then { > echo_failure > boot_mesg "Killing NFS nfsd..." > kill -HUP 'pidofproc nfsd' > evaluate_retval > sleep 10 > } > else echo_ok > fi > } > else echo_warning > fi > > Haven't had chance to test this yet, and guess I have to fake a nfsd > lockup to see what happens in worst case. > > My attempt is based upon Richard Downing and Bruce Dubbs tips > from the > BLFS-dev list. Couldn't find a good solution there though, > which is why > I'm trying this on my own. > > Again, all comment, corrections or better solutions are very welcome. > > --Tor Olav
You know, I know this is late for a comment... But I just thought of something... Could it be as simple as doing something like this: kill `pgrep nfsd` ? Dave -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page