Richard van den Berg wrote:
> Hello DECstation fans,
>
> The DECstations here (5000/25 and 133) aren't able to run multi-user
> yet, using the 2.1.131 kernel, when the system normally boots
> and init is starting the last visible execution is the last line
> of /etc/rc.d/rc.sysinit, which is an echo, after that the machines
> remains silent, ping-'ing them is possible and the only sign of life I
> can discover.
>
> When rc.sysinit drops into a shell because fstab is missing a line with
> the root filesytem, the machines work fine because they've compiled
> binutils, egcs and there own kernel which runs fine. `ps ax` in this
> shell gives following result:
>
> [root@fortuna /root]# ps ax
> PID TTY STAT TIME COMMAND
> 1 ? S 0:00 init bo
> 2 ? SW 0:00 (kflushd)
> 3 ? SWN 0:00 (kswapd)
> 4 ? SW 0:00 (rpciod)
> 5 S2 S 0:00 init bo
> 6 S2 S 0:01 sh /etc/rc.d/rc.sysinit
> 15 S2 S 0:01 -bash
> 32 S2 R 0:00 ps ax
>
> And shows 2 init's to my surprise, which might be the cause of the
> problem. But how is it possible that there are 2 init's running?
I booted 2.1.131 single user, and got the same result:
# ps axuf
USER PID %CPU %MEM SIZE RSS TTY STAT START TIME COMMAND
root 1 0.4 0.2 1548 452 ? S 17:39 0:00 init [S]
root 2 0.0 0.0 0 0 ? SW 17:39 0:00 (kflushd)
root 3 0.0 0.0 0 0 ? SWN 17:39 0:00 (kswapd)
root 4 0.2 0.0 0 0 ? SW 17:39 0:00 (rpciod)
root 41 0.0 0.2 1548 456 S2 S 17:39 0:00 init [S]
root 42 0.3 0.5 2808 1028 S2 S 17:39 0:00 \_ /bin/sh
root 45 0.0 0.2 1580 508 ? S 17:39 0:00 /usr/sbin/inetd
root 46 1.4 0.5 6128 1012 ? S 17:39 0:02 \_ in.rlogind
karel 47 1.3 0.5 2820 1128 p0 S 17:39 0:02 \_ -bash
root 68 1.0 0.4 4272 848 p0 S 17:40 0:01 \_ su
root 69 0.8 0.5 2828 1132 p0 S 17:40 0:01 \_ bash
root 86 0.0 0.3 1700 620 p0 R 17:42 0:00 ps ax
#
It looks like the second init is the parent of the single user shell.
Makes sense to me, it can restart a shell on exit, makes it easier
to code then within the 'master' init itself.
Regards,
--
Karel van Houten
----------------------------------------------------------
The box said "Requires Windows 95 or better."
I can't understand why it won't work on my Linux computer.
----------------------------------------------------------
|