xfs
[Top] [All Lists]

Re: One other deadly RH weirdness

To: Alan Eldridge <alane@xxxxxxxxxxxx>
Subject: Re: One other deadly RH weirdness
From: Juha Saarinen <juha@xxxxxxxxxxxx>
Date: Mon, 25 Jun 2001 17:04:46 +1200 (NZST)
Cc: "linux-xfs@xxxxxxxxxxx" <linux-xfs@xxxxxxxxxxx>
In-reply-to: <20010625005231.A4884@xxxxxxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
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


<Prev in Thread] Current Thread [Next in Thread>