Alan,
You should post this one on the RH Seawolf list, and Bugzilla it.
On Mon, 25 Jun 2001, Alan Eldridge wrote:
> 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.
>
>
--
Regards,
Juha
PGP fingerprint:
B7E1 CC52 5FCA 9756 B502 10C8 4CD8 B066 12F3 9544
|