From owner-freebsd-questions Wed Jan 14 08:52:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA20753 for questions-outgoing; Wed, 14 Jan 1998 08:52:23 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gatekeeper.barcode.co.il (gatekeeper.barcode.co.il [192.116.93.17]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA20593 for ; Wed, 14 Jan 1998 08:52:03 -0800 (PST) (envelope-from nadav@barcode.co.il) Received: from localhost (nadav@localhost) by gatekeeper.barcode.co.il (8.8.7/8.8.7) with SMTP id SAA20332; Wed, 14 Jan 1998 18:42:18 +0200 (IST) (envelope-from nadav@gatekeeper.barcode.co.il) Date: Wed, 14 Jan 1998 18:42:18 +0200 (IST) From: Nadav Eiron To: stephen farrell cc: michael dorin , questions@FreeBSD.ORG Subject: Re: smtp restarting after changes to sendmail.* In-Reply-To: <8767nnf51i.fsf@phaedrus.uchicago.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk On 14 Jan 1998, stephen farrell wrote: > michael dorin 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). As someone else already noted, you can simply kill -1 `head -1 /var/run/sendmail.pid` and be done with it. No need to shoot yourself though... ;-) > > -- > > Steve Farrell > > Nadav