init - sysvinit vs BusyBox

Shay Hofman shay.hofman at gmail.com
Sun Mar 19 20:03:58 UTC 2017


A novice question -

Is it possible to tweak and change busybox on an existing embedded device?
To be exact I'm referring to  Dlink home router device which has a very
limited and stripped down busybox os.
Very few linux commands can be executed...

What are your thoughts / experience ?

Thanks
Shay

On Sun, Mar 19, 2017 at 6:47 PM, Baruch Siach <baruch at tkos.co.il> wrote:

> Hi Ran,
>
> On Sun, Mar 19, 2017 at 10:02:17AM +0200, Ran Shalit wrote:
> > In documentation I find the following:
> > "Unlike sysvinit, BusyBox init does not stop processes from respawning
> > out of control".
> > Can anyone explain what it means ?
>
> When a respawn process exits immediately after startup, the SysV init
> implementation stops respawn for 5 minutes after trying 10 times. Look for
> MAXSPAWN in init.c[1]. This prevents a bad or misconfigured service from
> hogging the system.
>
> Busybox init doesn't do that.
>
> [1] http://svn.savannah.gnu.org/viewvc/sysvinit/sysvinit/
> trunk/src/init.c?view=markup
>
> baruch
>
> --
>      http://baruch.siach.name/blog/                  ~. .~   Tk Open
> Systems
> =}------------------------------------------------ooO--U--
> Ooo------------{=
>    - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20170319/4e1dc38b/attachment.html>


More information about the busybox mailing list