Since I just ranted on devfs oddities, I figure I'll let you guys know about
this non-devfs thing so you don't go nuts if it bites you...
In a reboot or halt script, do *not* use the words "daemon" or "action", not
even in a comment. If you do, the script will get run in a subshell of
/etc/rc, rather than being exec'd. This will result in the halt or reboot
script having a file open on /usr, with the consequence that .... [drum
roll, please] ... the halt script will kill itself trying to free up /usr so
it can unmount it!
This is actually a bit more twisted... the halt scripts are exec'd after
cleaning out any references to locales in the environment. So that's the
killer.... it's run in a subshell, so it has locale refs, so it holds a file
on /usr, and, well... blammo!
The rest of the story: you have to modify the halt script if you use the
Network UPS Tools package (a great UPS daemon). I have a UPS. So, being a
nice programmer, I commented the addition with "tell UPS daemon to kill the
power". Words fail me at this point.
--
Alan Eldridge
"Smart Tags? We don't need no steenking Smart Tags!"
|