Re: Death of init != death of kernel?

Richard B. Johnson (root@chaos.analogic.com)
Sun, 23 Aug 1998 15:06:38 -0400 (EDT)


On Sun, 23 Aug 1998, David Woodhouse wrote:

> The behaviour of the kernel upon the death of init appears to have changed
> recently. I recall a discussion about it, but wasn't aware that it had already
> happened.
>
> What was the reason for it?
>
> It breaks the established behavioural pattern of the kernel. Specifically, it
> means that Alt-SysRq-L-S-U-B only ever gets as far as the Alt-SysRq-L before
> the kernel hangs, leaving the filesystems mounted and unsyncable.
>
> Also, it means that if you boot with init=/bin/bash, then open more bashes on
> new VCs, the machine falls over when you exit the first one.
>
> Furthermore, it breaks machines that I've set up where /sbin/init is a script
> along the lines of...
>
> #!/bin/sh
> /sbin/ifconfig eth0 192.168.0.0 netmask 255.255.255.0
> /sbin/ifconfig eth1 192.168.1.0 netmask 255.255.255.0
> /sbin/sysctl-ipforward on
>
> When the script finishes, these machines just hang, rather than continuing to
> route the packets that they're supposed to.
>
> Unless there's a particularly good reason for the change, I'd like to revert
> to the established behaviour.
>
Temporarily, execute the following 'C' program as your last shell command.

main()
{
for(;;)
pause();
}

That will keep your machine alive.

Cheers,
Dick Johnson
***** FILE SYSTEM WAS MODIFIED *****

Presidents take credit for good events during their
administration and other events are blamed upon their
predecessors. So Clinton can take credit for Viagra and the
problem with the girl and candy can be blamed upon Reagan
and his jelly beans.

Penguin : Linux version 2.1.115 on an i586 machine (66.15 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.

-
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.altern.org/andrebalsa/doc/lkml-faq.html