I'm running RH 6.2, and am using the latest daemontools-0.76. Only, I
can't get service tools to stop qmail, unless I do it manually.
$ pwd
/etc/rc.d/init.d
$ find .. -name '*qmail'
../init.d/qmail
../rc0.d/K80qmail
../rc1.d/K80qmail
../rc2.d/K80qmail
../rc3.d/K80qmail
../rc4.d/K80qmail
../rc5.d/K80qmail
../rc6.d/K80qmail
The above listing shows that qmail is supposed to be turned off. The
script consists of the one provided by Dave Sill's "Live with qmail."
And indeed, if I manually run
$ /etc/rc.d/init.d/qmail stop
qmail stops, w/o killing the supervise processes.
Ok, so I saw that you go into /etc/inittab, the rc scripts that are
located in /etc/rc.d/rc*.d run BEFORE the
SV:123456:respawn:/command/svscanboot
line placed in the bottom by the daemontools package manager.
So I placed the line above the,
l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6
entries.
Well, it not only doesn't come down very cleanly but when it comes back
up, qmail is still running.
I've also tried the directive,
QM:123456:once:/etc/rc.d/init.d/qmail stop
QM:123456:wait:/etc/rc.d/init.d/qmail stop
after the SV directive, and what happens is I get a console error at
boot up saying that supervise isn't running. qmail is running when I
log on.
So, I'd like to keep supervise, but I don't want qmail to run until I
manually start it. Is there a setting in supervise I can use that will
keep qmail from running?
One other thing that occurred to me is that I can run a script that
deletes the "qmail-send" and "qmail-smtpd" soft links in /service when
I start up, and creates them again when I'm ready to go start qmail.
But I'd like to hear suggestions for something a little more eloquent.
=== Al
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/