On Fri, 6 Aug 1999, Marc-Adrian Napoli wrote:

> I've just been reading over the docs for qmail. It says to HUP the server if
> you change any files in the /var/qmail/control directory..

Actually, only locals and virtualdomains; see qmail-send(8).  For the
other files read on startup by the long-running daemons you need to shut
down and restart qmail-send:

  CONTROL FILES
       WARNING:  qmail-send  reads its control files only when it
       starts.  If you change the control files,  you  must  stop
       and restart qmail-send.  Exception: If qmail-send receives
       a HUP signal, it will reread locals and virtualdomains.

> What is a safe way to do this?

See the admin FAQ: ftp://koobera.math.uic.edu/www/qmail/faq/admin.html

> I've got a /etc/init.d/qmail script which doesn't actually work. I know that
> I have to HUP the tcpserver processes and the qmail-smtpd processes, but
> does anyone know exactly what to do?

qmail-smtpd runs fresh for each new connection, and tcpserver doesn't read
any control files.  The only long-running part of qmail you need to worry
about notifying or restarting is qmail-send (it takes care of it's support
processes (qmail-clean and qmail-[lr]spawn) for you).


-m

Reply via email to