Re: halted system still working as router.

Miquel van Smoorenburg (miquels@cistron.nl)
29 Oct 1998 10:38:25 +0100


In article <cistron.36379467.46C4D9E5@sheridanc.on.ca>,
Paul <paul.hessels@sheridanc.on.ca> wrote:
>The power in my apartment went out and my ups was about to fail. I
>typed "shutdown -h now" <enter>. The machine shutdown and halted. It
>said, The system is halted, and System Halted. My ups never did die.
>The curious thing was that when the power came back on I found that my
>computer was still routing traffic to the internet. Is this normal
>behaviors for a computer that has been halted? Is this a kernel
>problem, or specific to my machine(or my kernel)?

Newer versions of sysvinit solved this. halt(1) has a flag that tells
it to shutdown all network interfaces before halting [-i]. Make
sure your shutdown script calls "halt -i" (or even "halt -i -p").
This is the default in Debian 2.0, I don't know about RedHat.

Mike.

-- 
  "Did I ever tell you about the illusion of free will?"
    -- Sheriff Lucas Buck, ultimate BOFH.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/