[BusyBox] reboot problem in busybox

Hiroshi Ito ito at mlb.co.jp
Sat Nov 6 09:13:43 UTC 2004


Hello,

From: Vaclav Kocian <vaclav.kocian at wo.cz>
Subject: [BusyBox] reboot problem in busybox
Date: Fri, 05 Nov 2004 20:08:38 +0100
> Reboot command don't work propperly in busybox. I bypass this problem
> using "normal" init stuff ( 
> http://www.icewalkers.com/Linux/Software/58900/SysVInit.html  ) , 
> compiled against uclibc, and it seems to work fine now.
> Koci

 I encounterd same problem. but I undersands the reason, and now,
 it works fine for me.

 If you want to use BusyBox init, You need check follows.

 1. When you want to use inittab, 'id' field must be a device name or
    shoud be leave as empty.
    The line, which has id field, such a device is not exist,
    this line not executed.
    This behaivior is  to implement ASKFIRST.
    ( it is better to fix as exiting is only when the line has ASKFIRST )

 2. When you enabled CONFIG_INIT, reboot and poweroff comand works as
    send a signal to init.
    normal(?=GNU) poweroff checks current runlevel and decide what to do,
    (sending a signal to init or tell to kernel).
    but init doesn't have runlevel, so when you enables CONFIG_INIT,
    it only send a signal to init.  but not enabled, reboot and poweroff
    do real things(tell the kernel).

    So, do not put reboot and poweroff command to shutdown script,
    init will do by itself.

    Puting reboot or poweroff to shutdown script might be cause some
    problems.
    I'm not sure, how init works when recieved TERM or USER2 signal
    again or both are recieved, But I dont't think it is not enough
    to protect it (maybe, I didn't read the souce seriously about it. )
--------
Hiroshi Ito
Media Lab. Inc.,
URL http://www.mlb.co.jp ( Sorry, Japanese only. )
TEL +81-3-5294-7255  FAX +81-3-5294-7256



More information about the busybox mailing list