tcpsvd vs. tcpserver
Vincent Danen <[email protected]>
| Newsgroups | gmane.comp.misc.pape.general |
|---|---|
| Message-ID | <[email protected]> |
Hi there. I'm pretty new to runit/ipsvd/etc. and am looking at
completely replacing daemontools/ucspi-tcp with runit/ipsvd and for the
most part I've done it. The only thing left to convert is the scripts
using tcpserver.
I'd like to mimic the tcpserver behaviour as much as possible, so I'd
perfer to use cdb files rather than directories, although it looks to
me like there isn't much difference since the directories are used to
build the cdb files (at least that's what I understand). Before I dive
whole-hog into this, I'd just like to clarify one thing.
With tcpserver if I use -X, it tells tcpserver to allow everything if
foo.cdb doesn't exist. Does tcpsvd (and the others) do this
automatically? Or is the default to deny? There is no -X (or similar)
switch in tcpsvd that I can see.
I would also suspect that using:
tcpserver -c30 -HRXv -llocalhost -x /etc/tcprules.d/cvspserver.cdb 0
cvspserver /usr/sbin/cvspserver 2>&1
is the same as:
tcpsvd -c 30 -v -l localhost -x /etc/tcprules.d/cvspserver.cdb 0
cvspserver /usr/sbin/cvspserver 2>&1
correct?
I suppose that using the directories would be simplest, but I'm trying
to make things as easy as possible because this is for a Linux server
distribution that I'm working on, so it needs to be fairly simple for
others to use. Using cdb files with tcpserver was simple... one config
file, one cdb. Keeps things easy. This directory scheme doesn't seem
quite as straightforward. =)
BTW, thank you Gerrit for runit and ipsvd. I like the license far
better and it works much better for the OS I'm working on. By default
everything (except autofs which I still need to work on) is run out of
runit and it's absolutely fantastic. I had initially used daemontools
to handle this and wrote a wrapper script (much like Bruce's
supervise-scripts but this is one sole program) to give it a little
"ease of use" (essentially, my srv mimics the functionality of the
standard service/chkconfig programs). I much prefer running everything
supervised like this and have just recently converted everything from
daemontools to runit and am now looking to do the same with tcpserver
to tcpsvd.
--
Annvix - Secure Linux Server: http://annvix.org/
*Please note gpg keyid FE6F2AFD has been replaced with keyid FEE30AD4*
"lynx -source http://linsec.ca/vdanen.asc | gpg --import"
{FEE30AD4 : 7F6C A60C 06C2 4811 FA1C A2BC 2EBC 5E32 FEE3 0AD4}
PGP.sig
(application/pgp-signature, 186 B) - not displayed