Re: Handy way to restart qmail

2000-07-28 Thread Harry Putnam

Adam McKenna <[EMAIL PROTECTED]> writes:

> Are you blind?  It's right there in the middle of the page.  It's under
> Section 2.8 "Start qmail".

Er yes... but only since I got too broke to buy liquor, and started
drinking rubbing alcohol.



Re: Handy way to restart qmail

2000-07-28 Thread Einar Bordewich

- Original Message -
From: "Harry Putnam" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 28, 2000 6:39 PM
Subject: Re: Handy way to restart qmail


> > If you install "Life with qmail"'s "qmail" script--which uses DJB's
> > daemontools--restarting qmail is done by:
> >
> >   qmail restart
>
> OK, so much for the quessing game.  I find no address to acquire this
> script at:
> http://Web.InfoAve.Net/~dsill/lwq.html
> http://Web.InfoAve.Net/~dsill/lwq.txt
>
> Lots of mentions of what to call for this or that situation *IF* you
> installed `qmail script' but no URL where it can be gotten.
>
> No mention of it in my source package or /var/qmail/doc
>
> Google searchs turn up many threads in various mail groups but still
> no URL.
>

Well, if you had read the lwq document, you would have found the script.
It's there, but to use it you have to follow the lwq recipe ;-) (rtfm)

--

IDG New Media Einar Bordewich
Technical Manager  Phone: +47 2336 1420
E-Mail:   [EMAIL PROTECTED]






Re: Handy way to restart qmail

2000-07-28 Thread Dave Sill

Harry Putnam <[EMAIL PROTECTED]> wrote:

>Dave Sill <[EMAIL PROTECTED]> writes:
>
>> If you install "Life with qmail"'s "qmail" script--which uses DJB's
>> daemontools--restarting qmail is done by:
>> 
>>   qmail restart
>
>OK, so much for the quessing game.  I find no address to acquire this
>script at: 
>http://Web.InfoAve.Net/~dsill/lwq.html
>http://Web.InfoAve.Net/~dsill/lwq.txt

It's there:

  http://Web.InfoAve.net/~dsill/qmail-script-dt61.txt

Note, however, that you can't just plop this script onto any qmail
installation and expect it to work. It assumes a qmail installation
compatible with the installation instructions provided in LWQ, section 
2.

For most newbies, it'd be easier to reinstall following LWQ than to
retrofit the script onto an existing installation.

-Dave



Re: Handy way to restart qmail

2000-07-28 Thread Adam McKenna

Are you blind?  It's right there in the middle of the page.  It's under
Section 2.8 "Start qmail".

--Adam

On Fri, Jul 28, 2000 at 09:39:45AM -0700, Harry Putnam wrote:
> Dave Sill <[EMAIL PROTECTED]> writes:
> 
> > Harry Putnam <[EMAIL PROTECTED]> wrote:
> > 
> > >Is there a one move handy way to restart qmail?
> > 
> > If you install "Life with qmail"'s "qmail" script--which uses DJB's
> > daemontools--restarting qmail is done by:
> > 
> >   qmail restart
> 
> OK, so much for the quessing game.  I find no address to acquire this
> script at: 
> http://Web.InfoAve.Net/~dsill/lwq.html
> http://Web.InfoAve.Net/~dsill/lwq.txt
> 
> Lots of mentions of what to call for this or that situation *IF* you
> installed `qmail script' but no URL where it can be gotten.
> 
> No mention of it in my source package or /var/qmail/doc
> 
> Google searchs turn up many threads in various mail groups but still
> no URL.
> 



Re: Handy way to restart qmail

2000-07-28 Thread Harry Putnam

Dave Sill <[EMAIL PROTECTED]> writes:

> Harry Putnam <[EMAIL PROTECTED]> wrote:
> 
> >Is there a one move handy way to restart qmail?
> 
> If you install "Life with qmail"'s "qmail" script--which uses DJB's
> daemontools--restarting qmail is done by:
> 
>   qmail restart

OK, so much for the quessing game.  I find no address to acquire this
script at: 
http://Web.InfoAve.Net/~dsill/lwq.html
http://Web.InfoAve.Net/~dsill/lwq.txt

Lots of mentions of what to call for this or that situation *IF* you
installed `qmail script' but no URL where it can be gotten.

No mention of it in my source package or /var/qmail/doc

Google searchs turn up many threads in various mail groups but still
no URL.



Re: kill -9 (was Re: Handy way to restart qmail)

2000-07-28 Thread James Raftery

On Sat, Jul 29, 2000 at 04:18:11AM +1200, Chris, the Young One wrote:
> Personal observation: some people type ``kill -9'' subconsciously.

Yes; definitely. I have caught myself about to type that quite a few
times.

For a supervised qmail, 'svc -t /service/qmail' does that job perfectly.

james
-- 
James Raftery (JBR54)  -  Programmer Hostmaster  -  IE TLD Hostmaster
   IE Domain Registry  -  www.domainregistry.ie  -  (+353 1) 706 2375
  "Managing 4000 customer domains with BIND has been a lot like
   herding cats." - Mike Batchelor, on [EMAIL PROTECTED]



kill -9 (was Re: Handy way to restart qmail)

2000-07-28 Thread Chris, the Young One

On Fri, Jul 28, 2000 at 11:59:22AM -0400, Dave Sill wrote:
! Yeah, and dangerous, too. A plain "kill" (no -9) on the qmail-send
! process is much safer.

Personal observation: some people type ``kill -9'' subconsciously. I
suggest that the kill command be modified, so that you have to type
``kill -supercalifragilisticexpialidocious'' in order to send SIGKILL.

I know people can set up aliases, but that's very hard to subconsciously
achieve. :-)

---Chris K.
-- 
 Chris, the Young One |_ Never brag about how your machines haven't been 
  Auckland, New Zealand |_ hacked, or your code hasn't been broken. It's 
http://cloud9.hedgee.com/ |_ guaranteed to bring the wrong kind of 
 PGP: 0xCCC6114E/0x706A6AAD |_ attention. ---Neil Schneider 



Re: Handy way to restart qmail

2000-07-28 Thread Dave Sill

Harry Putnam <[EMAIL PROTECTED]> wrote:

>Is there a one move handy way to restart qmail?

If you install "Life with qmail"'s "qmail" script--which uses DJB's
daemontools--restarting qmail is done by:

  qmail restart

The complete set of commands is:

   stop -- stops mail service (smtp connections refused, nothing goes out)
  start -- starts mail service (smtp connection accepted, mail can go out)
  pause -- temporarily stops mail service (connections accepted, nothing leaves)
   cont -- continues paused mail service
   stat -- displays status of mail service
cdb -- rebuild the tcpcontrol cdb file for smtp
restart -- stops and restarts smtp, sends qmail-send a TERM & restarts it
doqueue -- sends qmail-send ALRM, scheduling queued messages for delivery
 reload -- sends qmail-send HUP, rereading locals and virtualdomains
  queue -- shows status of queue
   alrm -- same as doqueue
hup -- same as reload

>I've been calling `ps waux |grep qmail', then `kill -9' on qmails pid then
>calling (using bash) `/var/qmail/rc &' (From the doc/INSTALL
>document).
>
>Seems a little cumbersom. 

Yeah, and dangerous, too. A plain "kill" (no -9) on the qmail-send
process is much safer.

-Dave



Re: Handy way to restart qmail

2000-07-28 Thread Petr Novotny

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 28 Jul 00, at 8:47, Harry Putnam wrote:

> Running Freebsd 4.0
> qmail-1.03
> 
> Is there a one move handy way to restart qmail?

To restart, send qmail-send a SIGTERM and way for it and all 
qmail-remotes (and qmail-locals) to go out. Then start /var/qmail/rc 
or something again.

To reread locals and virtualdomains, send qmail-send a SIGHUP.

-BEGIN PGP SIGNATURE-
Version: PGP 6.0.2 -- QDPGP 2.60 
Comment: http://community.wow.net/grt/qdpgp.html

iQA/AwUBOYGekVMwP8g7qbw/EQKQnACePLdoCKwCcoHtR/b47VnzUcFN25YAnRMo
uhC2VGAr2LcEjMtqj07MWh9v
=r2GA
-END PGP SIGNATURE-
--
Petr Novotny, ANTEK CS
[EMAIL PROTECTED]
http://www.antek.cz
PGP key ID: 0x3BA9BC3F
-- Don't you know there ain't no devil there's just God when he's drunk.
 [Tom Waits]