So unmountnfs will be executed afer all K* scripts and unmount as expected.
I came to that conclusion will mulling this over as I left work this evening.
However - it doesn't run those scripts. It only runs the KU* ones.
This is what is sent to the console on a reboot:
The system is going down for reboot NOW!
root@plug:~# Stopping web server: cherokee .
* Saving the system clock
* Stopping Postfix Mail Transport Agent postfix [ OK ]
* Stopping internet superserver xinetd [ OK ]
* Will now restart
Restarting system.
No sign of "Deactivating swap" or "Unmounting local filesystems" - and on reboot I see:
* Checking file systems...
fsck 1.41.4 (27-Jan-2009)
PlugBoot was not cleanly unmounted, check forced.
PlugBoot: 14/24856 files (14.3% non-contiguous), 12708/99268 blocks
PlugLocal: recovering journal
PlugLocal: clean, 490/699008 files, 90465/2794243 blocks
fsck died with exit status 1
So, all the evidence is that the S* scripts don't get run.
Ahh!!!! I SEE THE PROBLEM!!!rc0.d contains S01halt and rc6.d contain S01reboot, so nothing that sorts to be
after those scripts will
ever get run!!! That just happens to be
all other S* scripts!
Isn't everybody in this position? By that I mean anyone running Ubuntu - anywhere? This strikes me as a fairly fundamental bug/problem.