On Sunday 12 May 2002 03:18, chris wrote:
> Yep, that works, sort of.  It appears that the second instance (as in
> the example) isn't controllable via SVC -d /service/qmail-smtpd
> anymore.  SVC -u /service/qmail-smtpd DOES cause the two instances to
> start up (by using the & detach correctly) but I can't "down" them...
>  Well, it's better than having to build all those separate svscan
> ./run 's !  Worst case is do a SVC -d and then a pkill I guess.
>

well, you just got rid of the reason why you where using daemontools in 
the first place... if you don't want daemontools, don't use it.

supervise can only supervise one exec. if you want to supervise two 
different execs, you'll need two supervises (two run scripts)

instead of the mess you are getting up there, you could write a regular 
startup script (which then would enable you to shut down both 
processes)

now, what is it, that is so hard about running two supervised instances 
of tcpserver?

# cd /var/qmail/supervise
# cp qmail-smtpd qmail-smtpd-noscan
# echo "new-ip" > ./qmail-smtpd-noscan/env/IP
# ln -s /var/qmail/supervise/qmail-smtpd-noscan /service

(this is highly depandent on you setup and might not work at all, screw 
up your system etc)

>
> Thanks for the suggestions so far.  Maybe these's some additional
> ideas out there.
>
> Chris Bunnell

sorry for the PM!

>
-- 
regards
Thilo






On Sunday 12 May 2002 03:18, chris wrote:
> Yep, that works, sort of.  It appears that the second instance (as in
> the example) isn't controllable via SVC -d /service/qmail-smtpd
> anymore.  SVC -u /service/qmail-smtpd DOES cause the two instances to
> start up (by using the & detach correctly) but I can't "down" them...
>  Well, it's better than having to build all those separate svscan
> ./run 's !  Worst case is do a SVC -d and then a pkill I guess.
>
>
> Thanks for the suggestions so far.  Maybe these's some additional
> ideas out there.
>
> Chris Bunnell
>
> ----- Original Message -----
> From: "tonix (Antonio Nati)" <[EMAIL PROTECTED]>
> To: "chris" <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Saturday, May 11, 2002 5:56 PM
> Subject: Re: [Qmail-scanner-general]multiple TCPSERVER's for
> per-domain scanning
>
> > At 11/05/2002 11/05/2002 -0700, chris wrote:
> > >Hello list,
> > >
> > >     I understand that a method of running "per-domain scanning"
> > > would be
>
> to
>
> > >use MX records to point to different IP's that are local to your
> > > single
>
> mail
>
> > >server running qmail-scanner.  Then you would have separate
> > > instances of TCPSERVER running that are listening to those IP's. 
> > > In your setup for TCPSERVER, you would either have the QMAILQUEUE
> > > variable set or not for
>
> each
>
> > >instance you wished to either scan or not...  etc.
> > >
> > >     While this works fine, I found that it was a pain to set up
> > > all
>
> these
>
> > >separate "run" instances in /service.  You would need one for each
>
> binding
>
> > >of IP address, since you can't simply use the "0" option in
> > > TCPSERVER because you want to have separate control over which
> > > domains get scanned
>
> or
>
> > >not.
> > >
> > >     Has anyone figured out a way to have multiple "exec
> > >/usr/local/bin/tcpserver ...  " instances in a SINGLE run in a
> > > SINGLE /service ?
> > >
> > >     I tried the following but it didn't work.  ./run:
> > >
> > >#!/bin/sh
> > >QMAILDUID=`/usr/xpg4/bin/id -u qmaild`
> > >NOFILESGID=`/usr/xpg4/bin/id -g qmaild`
> > >QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" export
> > > QMAILQUEUE exec /usr/local/bin/tcpserver -S -R -H -c100 -x
> > >/RAID/vpopmail/etc/tcp.smtp.cdb\
> > >  -u "$QMAILDUID" -g "$NOFILESGID" -l 0 192.168.1.25 smtp\
> > >  /var/qmail/bin/qmail-smtpd 2>&1
> >
> > I don't see the detach (&) parameter at the end of you tcpserver
> > command, so the second tcpserver cannot start if first is not
> > detached.
> >
> > Just add & at the end of the previous line:
> >   /var/qmail/bin/qmail-smtpd 2>&1 &
> >
> > >unset QMAILQUEUE="" export QMAILQUEUE
> > >exec /usr/local/bin/tcpserver -S -R -H -c100 -x
> > >/RAID/vpopmail/etc/tcp.smtp.cdb\
> > >  -u "$QMAILDUID" -g "$NOFILESGID" -l 0 192.168.1.82 smtp\
> > >  /var/qmail/bin/qmail-smtpd 2>&1
> > >
> > >
> > >the process hangs after the first exec tcpserver command and never
> > > makes
>
> it
>
> > >to the second one...   I tried making ./run call two other
> > > separate files called bat1 and bat2 which contained the separate
> > > exec's of tcpserver but that didn't work either.
> > >
> > >I just can't see it being necessary to make all these separate
> > > instances
>
> of
>
> > >svscan's for each and every domain I want to handle.  Now, of
> > > course, if
>
> I
>
> > >didn't care about NOT scanning certain domains (per-domain
> > > qmail-scanner config) then I would just have one instance of
> > > /service/qmail-smtpd/run
>
> with
>
> > >a tcpserver binding of "0" and that would be it - but if you want
>
> per-domain
>
> > >scanning, that doesn't work.
> > >
> > >Any thoughts?
> > >
> > >Chris Bunnell
> > >Senior Engineer - Network Implementation
> > >Avantac Technologies, Inc. - Formerly Sonic Internet Services
> > >9719 Lincoln Village Drive #503
> > >Sacramento, CA. 95827
> > >(916) 854-5940
> > >www.avantac.com
> > >
> > >
> > >
> > >_______________________________________________________________
> > >
> > >Have big pipes? SourceForge.net is looking for download mirrors.
> > > We
>
> supply
>
> > >the hardware. You get the recognition. Email Us:
>
> [EMAIL PROTECTED]
>
> > >_______________________________________________
> > >Qmail-scanner-general mailing list
> > >[EMAIL PROTECTED]
> > >https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general
> >
> > ------------------------------------------------------------
> >          Inter@zioni            Interazioni di Antonio Nati
> >     http://www.interazioni.it      [EMAIL PROTECTED]
> > ------------------------------------------------------------
> >
> >
> > _______________________________________________________________
> >
> > Have big pipes? SourceForge.net is looking for download mirrors. We
> > supply the hardware. You get the recognition. Email Us:
> > [EMAIL PROTECTED]
> > _______________________________________________
> > Qmail-scanner-general mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general
>
> _______________________________________________________________
>
> Have big pipes? SourceForge.net is looking for download mirrors. We
> supply the hardware. You get the recognition. Email Us:
> [EMAIL PROTECTED]
> _______________________________________________
> Qmail-scanner-general mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

-- 
regards
Thilo

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to