On Thu, May 16, 2002 at 10:16:56PM -0701, Jos Backus wrote: > On Thu, May 16, 2002 at 07:27:46PM -0700, Manoj Kasichainula wrote: > > I've (mostly) written replacements for supervise, setuidgid, and > > tcpserver. They use Single Unix APIs, haven't been ported to APR, and > > have no docs yet, but they are working for me. > > > > I imagine porting them to APR wouldn't be too painful, though they > > wouldn't remain the svelte 4-8kB binaries they are today. :) > > Interesting. I'm not sure how much benefit there would be from using APR > though.
Mainly portability to older Unixes that don't support some of the more modern calls I used (or that break Single Unix in ways that Linux doesn't). I guess autoconf, etc. would do the job as well. > > Are people interested in this code? > > I for one would be interested in seeing this. http://www.io.com/~manoj/file/mktool-0.0.7.tar.gz I've only built it on my Linux boxes; I haven't even tried FreeBSD yet, though I did try to avoid Linuxisms. The supervise replacement is called "babysit" (so it wouldn't be confused with the djb tool it tries to work as). I'll hopefully clean it up a bit more, and maybe even test and doc it more next week. > I may be able to sell this to > the FreeBSD people for inclusion in the base OS if the license allows it. That won't be a problem. :) > Do you also have equivalents to svc, svstat and svok? I haven't written svc or svstat replacements yet; I've just used 'echo -n "dx" > directory/control' in my scripts in the mean time. But they will be easy. There is an svok workalike called "bsok" in the tarball though.