On Sat, Jun 10, 2017 at 04:02:04PM +0200, Thomas Seeling wrote: > Hallo, > > > I seem to have a serious misunderstanding how SysV init works ... > After building NFS support I could happily mount NFS filesystems from my > NAS. > > Then I did a reboot and noticed that the sequence of kill scripts is a > bit ... unfortunate to say the least. > First it removes the IP address from the network interfaces and only > *then* it tries to unmount the "rest" of the filesystems. > This does not work for NFS though - it hangs forever. > > So I wrote a special kill script to unmount NFS and put it *before* the > kill script for the interfaces. > This works fine and I was happy. > > At least for a short time - until I used the "poweroff" command and > noticed that once again the sequence is not correct. > > I thought the logic behind poweroff and reboot is the same but obviously > there are different code paths. > > Can somebody clue me in what I'm doing wrong? > > Here are my init scripts as far as network and NFS are concerned: > > /etc/rc.d/init.d/: > mountfs > mountnetfs > network > nfs-client > > /etc/rc.d/rc3.d/: > S20network > S30rpcbind > S31nfs-client > > /etc/rc.d/rc6.d/: > K30nfs-client > K30rpcbind > K45mountnetfs > K80network > S99reboot > > > Tschau...Thomas
You don't say which version of the bootscripts you are using. But nfs has worked for me for many years. Indeed it is an important part of my setup (all my notes and sources are on nfs). I did have one issue on an old system a few months ago, where it decided to spit out error messages as if it was ignoring that the nfs mounts were network mounts. But that system had worked before, I only noticed the problem after upgrading a few packages in case I had to use the old system to recover the current system. I never did get to the bottom of that. What I don't seem to have anywhere is a mountnetfs script. ĸen -- I live in a city. I know sparrows from starlings. After that everything is a duck as far as I'm concerned. -- Monstrous Regiment -- http://lists.linuxfromscratch.org/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
