I really should let this die, but I just can't...
Henning Brauer <[EMAIL PROTECTED]> wrote:
>On Thu, Feb 22, 2001 at 04:34:36PM -0500, Dave Sill wrote:
>
>> Where does apachectl live?
>
>/usr/sbin/apachectl, but thats irrelevant as apache is NOT started or
>stopped or whatever by apachectl, apachectl in OpenBSD is just a helper
>program for the sysadmin, not for the system.
How do you start Apache if not "apachectl start"?
>> How is having a simple control interface like:
>[...]
>> against "keep it simple"?
>> What are the *BSD-approved equivalents for the above commands?
>
>svc -d /service/qmail-* and co. In general you are looking up PIDs and send
>them signals in BSD-world, not calling complex scripts.
"Complex scripts"? You think think the LWQ qmail script is complex?
Give me a break! It's freakin' trivial.
Let's look at simplicity and complexity... Let's compare your way and
my way for some simple qmail administration tasks:
Task BSD LWQ
start PATH=$PATH:/usr/local/bin qmail start
svscan /service &
stop svc -d /service/qmail-* qmail stop
svc -d /service/qmail-*/log
restart svc -d /service/qmail-* qmail restart
svc -d /service/qmail-*/log
PATH=$PATH:/usr/local/bin
svscan /service &
rebuild cdb tcprules /etc/tcp.smtp.cdb \ qmail cdb
/etc/tcp.smtp.tmp < /etc/tcp.smtp
check queue qmail-qstat qmail queue
qmail-qread
hup fire up web browser qmail hup
go to http://cr.yp.to
find daemontools docs
look up svc
locate HUP option
svc -h /service/qmail-send
The last example is facetious, of course, but illustrative of the fact
that not everyone wants to memorize all of svc's options. And when you
need to act fast, do you really want to have to research what to do
first? What if cr.yp.to's down? What if your net link is down? Do you
really have a local copy of the daemontools docs? Is it current?
>[Non-OS specific installation instructions] can't work. The OS
>concepts are to different.
That's pretty sad, but it's a symptom of the gratuitous
incompatibilities that DJB rails against. And these are due to 20
different OS packagers each doing things their own way and demanding
that developers accomodate their whims.
The LWQ qmail script works the same on all platforms. Can't BSD be
just a little flexible and allow cross-platform compatibility?
-Dave