Any objections to smarden.org tools added to bbox?

Denis Vlasenko vda.linux at googlemail.com
Mon Jul 10 07:45:45 UTC 2006


On Monday 10 July 2006 05:15, Rob Landley wrote:
> On Sunday 09 July 2006 5:11 pm, David Seikel wrote:
> > On Sun, 9 Jul 2006 20:17:47 +0200 Goetz Bock <bock at blacknet.de> wrote:
> > > On Sun, Jul 09 '06 at 19:41, Denis Vlasenko wrote:
> > > > I use the djb's daemontools and ucspi-tcp a lot.
> > > > However, they are not GPL'ed, but there are very similar
> > > > replacements, which are:
> > > >
> > > > http://smarden.org/runit/
> > > > http://smarden.org/socklog2/
> > > > http://smarden.org/ipsvd/
> > > >
> > > > I'd like to add these to bbox. Is there a chance that they
> > > > will be accepted?
> > >
> > > If they are small, and GPL I'm sure they will be accepted, but instead
> > > of runit there is (was?) an minit port to BB, and minit is IMHO a sane
> > > way to do what runit tries ;-)
> >
> > Probably time to mention urunlevel at sourceforge again, if only for
> > the sake of combpleteness.  B-)
> 
> Ok, you mentioned it, I have no idea what it is or what it does, and I have 
> way too much else to do to go hunt it down myself.  Since you didn't supply 
> the slightest clue as to what it actually is or why I should care, we move 
> on...

runit is none of those things. Well, one tool from that package is
an init replacement, but I'm not interested in that.
My init is just a shell script and I don't need anything
more complicated.

The main part of the runit are daemon-controlling tools runsv,
runsvdir, svlog. If you ever used or read about djb's daemontools,
then I can simply say that those are GPLed replacements of
svscan, supervise, multilog. (And if you never used those:
this is how the setup looks like in my current machine:

  613 ?        S      0:00   svscan /var/service
  627 ?        S      0:00     supervise fw
  628 ?        S      0:00     supervise gpm
  629 ?        S      0:01       gpm -D -2 -m /dev/psaux -t ps2
  630 ?        S      0:00     supervise ntp
  681 ?        SL     0:01       ntpd -c conf -f drift -s stat -l /proc/self/fd/2 -p /dev/null -k /dev/null -g -d -n
  631 ?        S      0:00     supervise log
  632 ?        S      0:00       multilog t n5 /var/log/service/ntp
  634 ?        S      0:00     supervise top
  635 ?        S     58:48       top c s TERM=linux
  638 ?        S      0:00     supervise klog
  639 ?        S      0:00       socklog ucspi
  640 ?        S      0:00     supervise log
  641 ?        S      0:00       svlogd -tt /var/log/service/klog
  658 ?        S      0:00     supervise once
  682 ?        S      0:00     supervise sshd
 3063 ?        S      0:01       /usr/bin/sshd -D -e -p22 -u0
21992 ?        S      0:10         sshd: root at pts/0              R
22001 pts/0    S      0:00           -bash USER=root LOGNAME=root HOME=/root PATH=/bin:/usr/bin MAIL=/var/mail/root SHELL=/bin/bash SSH_$
)

Code size (compiled against dietlibc):

# top b n1 | grep -e svscan -e supervise -e multilog -e PID
  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU COMMAND
  613 root      16   0   132   24     8 S     0,0  0,0   0:00   0 svscan
  627 root      16   0   100   16     8 S     0,0  0,0   0:00   0 supervise
  628 root      16   0   104   20     8 S     0,0  0,0   0:00   0 supervise
  630 root      16   0   100   16     8 S     0,0  0,0   0:00   0 supervise
  631 root      16   0   100   16     8 S     0,0  0,0   0:00   0 supervise
  633 root      16   0   100   20     8 S     0,0  0,0   0:00   0 supervise
  634 root      16   0   104   20     8 S     0,0  0,0   0:00   0 supervise
  632 daemon    18   0   108   32    16 S     0,0  0,0   0:00   0 multilog
  638 root      16   0   104   20     8 S     0,0  0,0   0:00   0 supervise
  640 root      16   0   100   16     8 S     0,0  0,0   0:00   0 supervise
  658 root      16   0   100   16     8 S     0,0  0,0   0:00   0 supervise
  682 root      16   0   100   16     8 S     0,0  0,0   0:00   0 supervise
  683 root      16   0   100   16     8 S     0,0  0,0   0:00   0 supervise
  704 daemon    18   0   108   28    16 S     0,0  0,0   0:00   0 multilog
...

--
vda



More information about the busybox mailing list