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
-- 
"Do you wanna be a legend or a passing footprint on the sands of time?"

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to