From owner-freebsd-questions Thu Apr 5 10:39:48 2001 Delivered-To: freebsd-questions@freebsd.org Received: from satori.inet.it (satori.inet.it [213.92.4.186]) by hub.freebsd.org (Postfix) with ESMTP id 3E5A037B616 for ; Thu, 5 Apr 2001 10:39:17 -0700 (PDT) (envelope-from laura@satori.inet.it) Received: by satori.inet.it (Postfix, from userid 1002) id 450C32066; Thu, 5 Apr 2001 19:37:24 +0200 (CEST) Date: Thu, 5 Apr 2001 19:37:24 +0200 From: Laura Gioia To: Beech Rintoul Cc: freebsd-questions@FreeBSD.ORG Subject: Re: postfix at boot Message-ID: <20010405193723.B1380@satori.inet.it> Reply-To: Laura Gioia References: <01Apr5.121906edt.115529@gateway.intersys.com> <01Apr5.122549edt.115375@gateway.intersys.com> <01040509222300.01510@galaxy.anchoragerescue.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <01040509222300.01510@galaxy.anchoragerescue.org>; from akbeech@anchoragerescue.org on Thu, Apr 05, 2001 at 09:22:23AM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I didn't like this solution, cause I've to remember to not overwrite the mailer.conf when I do mergemaster, so I wrote a little shell script that I put in rc.d This is, if this will help someone in the future: #!/bin/sh -e # Start or stop Postfix PATH=/bin:/usr/bin:/sbin:/usr/sbin DAEMON=/usr/local/sbin/postfix NAME=Postfix test -x $DAEMON -a -f /usr/local/etc/postfix/main.cf || exit 0 case "$1" in start) echo -n "Starting mail transport agent: Postfix" /usr/local/sbin/postfix start 2>&1 | (grep -v 'starting the Postfix' 1>&2 || /usr/bin/true) echo "." ;; stop) echo -n "Stopping mail transport agent: Postfix" /usr/local/sbin/postfix stop 2>&1 | (grep -v 'stopping the Postfix' 1>&2 || /usr/bin/true) echo "." ;; restart) $0 stop $0 start ;; reload) echo -n "Reloading Postfix configuration..." /usr/local/sbin/postfix reload 2>&1 | (grep -v 'refreshing the Postfix' 1>&2 || /usr/bin/true) echo "done." ;; flush) /usr/local/sbin/postfix flush ;; check) /usr/local/sbin/postfix check ;; *) echo "Usage: /usr/local/etc/rc.d/postfix.sh {start|stop|restart|reload|f lush|check|force-reload}" exit 1 ;; esac exit 0 On Thu, Apr 05, 2001 at 09:22:23AM -0800, Beech Rintoul wrote: > To stop sendmail and make postfix start at boot go back to the port and do a > "make replace". That will do all the setup, and postfix will start with all > the normal sendmail commands. > > Beech > ------------------------------------------------------------------- > Beech Rintoul - IT Manager - Instructor - akbeech@anchoragerescue.org > /"\ ASCII Ribbon Campaign | Anchorage Gospel Rescue Mission > \ / - NO HTML/RTF in e-mail | P.O. Box 230510 > X - NO Word docs in e-mail | Anchorage, AK 99523-0510 > / \ ----------------------------------------------------------------- > > > > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Laura Gioia I.net Spa - Housing Dpt. - ACK and you shall receive. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message