[BusyBox] LSB compliant sysvinit applet.

Denis Vlasenko vda at port.imtp.ilyichevsk.odessa.ua
Fri Mar 4 06:59:45 UTC 2005


On Friday 04 March 2005 07:28, David Seikel wrote:
> #endlurk
> 
> The documentation for the init applet says "If you want runlevels, use
> sysvinit."  I'm writing LSB (Linux Standard Base) compliant sysvinit
> style busybox applets.  They also ignore the runlevel field in
> /etc/inittab, while being compatible with the busybox default inittab. 
> LSB has default runlevels encoded in the init scripts, and the storage
> place for non-default runlevel details is implementation specific.  So I
> store them elsewhere.
> 
> I am also including some actual "init scripts" implemented as busybox
> applets.  I intend to at least do all the LSB defined standard system
> ones.  This is all to support a linux distro I am creating, so there are
> a few other things, like a /linuxrc and a udhcpc "script".
> 
> I don't know if you would like to include these applets in busybox, or
> if you would prefer if I kept them as a third party bundle.  So I have
> some questions.  First is would you prefer if I kept them as a third
> party bundle?
> 
> When adding applets, entries need to be added to some busybox include
> files, some of them in alphabetical order with respect to the other
> applets.  This is hard to arrange for a third party applet, even harder
> if there are more than a dozen applets.  Are there any tools to automate
> that process?
> 
> If we incorporate these applets into busybox, should we stick them in
> with the init applets or make a new directory?  The name of the run
> level changing program is not defined in LSB, do you have any preference
> for a name for the program, or it's directory?  Currently I call the
> main applet rc, and I include an rcS applet to be compatible with the
> default inittab.
> 
> The default inittab has the rcS script outside of the busybox supported
> directories of /, /bin, /sbin, /usr/bin, and /usr/sbin, so I currently
> use a trivial /etc/init.d/rcS shell script that just calls the rcS
> applet.  LSB wants to place some executables in other places.  How
> reluctant are you to add to the list of busybox supported directories?
> 
> I don't like the style of coding you use for busybox, but I am a
> good open source citizen and I will apply the supplied ugly stick
> (.indent.pro) to my code before releasing it into the wild. 
> 
> That's all the questions that I can recall at the moment.  This at least
> gets the discussion rolling so that interested parties can work with me
> on this.  If you decide to incorporate my applets into busybox, I will
> be happy to be their maintainer.

Did you try daemontools? In my experience, they are easier to use
and have nice, simple and consistent interface.

If you plan to do your own linux distro, I think it makes sense
to at least evaluate them as init replacement.

I am attaching a thread about them from qmail list.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: supervise.txt.bz2
Type: application/x-bzip2
Size: 10764 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20050304/1d7e452c/attachment.bin 


More information about the busybox mailing list