From owner-freebsd-questions  Wed Jan 14 08:52:07 1998
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
Received: (from majordom@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id IAA20641
          for questions-outgoing; Wed, 14 Jan 1998 08:52:07 -0800 (PST)
          (envelope-from owner-freebsd-questions@FreeBSD.ORG)
Received: from mother.sneaker.net.au (akm@mother.sneaker.net.au [203.30.3.2])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA20510
          for <questions@FreeBSD.ORG>; Wed, 14 Jan 1998 08:51:52 -0800 (PST)
          (envelope-from akm@mother.sneaker.net.au)
Received: (from akm@localhost)
	by mother.sneaker.net.au (8.8.5/8.8.5) id EAA01686;
	Thu, 15 Jan 1998 04:02:32 +1100 (EST)
From: Andrew Kenneth Milton <akm@mother.sneaker.net.au>
Message-Id: <199801141702.EAA01686@mother.sneaker.net.au>
Subject: Re: smtp restarting after changes to sendmail.*
To: stephen@farrell.org (stephen farrell)
Date: Thu, 15 Jan 1998 04:02:31 +1100 (EST)
Cc: mike@chaski.com, questions@FreeBSD.ORG
In-Reply-To: <8767nnf51i.fsf@phaedrus.uchicago.edu> from "stephen farrell" at Jan 14, 98 09:28:57 am
X-Mailer: ELM [version 2.4 PL25]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: owner-freebsd-questions@FreeBSD.ORG
Precedence: bulk

+-----[ stephen farrell ]------------------------------
| 
| michael dorin <mike@chaski.com> writes:
| 
| > How do I restart smtp without rebooting after I change the sendmail
| > files?
| 
| In my opinion this is a benefit of sysV way of doing things over
| BSD--under solaris, e.g., you do /etc/init.d/sendmail stop;
| /etc/init.d/sendmail start and you don't have to worry about flags and 
| so on.
| 
| Unless I'm sadly mistaken and need to take myself out and shoot
| myself, under freebsd you need to (a) ps -auxx and find the sendmail
| process and kill it (or use killall, which I never think of b/c I use
| solaris so much, and killall in solaris does something totally
| immoral) (b) check the flags for sendmail in /etc/rc.conf, and then
| (c) run sendmail (which is in /usr/sbin) with those flags.  (of course
| you quickly learn /usr/sbin/sendmail -bd -q1h).

If you start it with a full path, I'm sure you can sighup it and it'll
restart with all flags intact.

so if you start it as /usr/sbin/sendmail -bd ....
rather than just sendmail -bd ....

-- 
  ,-_|\  SneakerNet       |     Andrew Milton    |    GSM: +61(41)6 022 411
 /     \ P.O. Box 154     |  akm@sneaker.net.au  |    Fax: +61(2) 9746 8233
 \_,-._/ N Strathfield +--+----------------------+---+ Ph: +61(2) 9746 8233
      v  NSW 2137      | Low cost Internet Solutions |