Date: Thu, 15 Jan 1998 11:46:12 -0800 (PST) From: "Jonathan M. Bresler" <jmb> To: jdc@nterprise.net (John-David Childs) Cc: jmb@FreeBSD.ORG, questions@FreeBSD.ORG Subject: Re: smtp restarting after changes to sendmail.* Message-ID: <199801151946.LAA03598@hub.freebsd.org> In-Reply-To: <19980115120917.43100@denver.net> from John-David Childs at "Jan 15, 98 12:09:17 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
John-David Childs wrote: > On Thursday January 15, 1998, Jonathan M. Bresler <jmb@FreeBSD.ORG> > had this to say about "Re: smtp restarting after changes to sendmail.*": > > > John-David Childs wrote: > > > 19428 > > > /usr/sbin/sendmail -bd -q30m > > > > > > > > > SO: I do the following: > > > > > > kill -9 `head -1 /var/run/sendmail.pid`;/usr/sbin/sendmail -bd -q30m > > > > ouch.....why kill sendmail dead and then restart it from scratch. > > sendmail will re-read /etc/sendmail.cf > > if 1. it was started with a full path name (like yours above) > > 2. you send it a HUP > > jmbn > > HUP's to sendmail work for changes to /etc/sendmail.cw and > /etc/sendmail.cf, but do not work for changes to the "database" files like > /etc/virtusertable, /etc/mailertable, /etc/genericstable, etc. Since I > end up changing those files more often than sendmail.cw or sendmail.cf, I > just got in the habit of sending a -9 instead of a -1 :-) ackkkk!!!!!! you dont need to HUP or kill -9 for tthose to take effect. i edit the /etc/mailertable and its automagically effective. makemap hash /etc/mailertable < /etc/mailertable ^ ^ | | | --- the ascii source file ---- the database, really /etc/mailertable.db so long as the inode number does not change (dont cp or mv it) it works like magic ;) jmb
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801151946.LAA03598>