Date: Thu, 5 Apr 2001 19:37:24 +0200 From: Laura Gioia <l.gioia@inet.it> To: Beech Rintoul <akbeech@anchoragerescue.org> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: postfix at boot Message-ID: <20010405193723.B1380@satori.inet.it> In-Reply-To: <01040509222300.01510@galaxy.anchoragerescue.org>; from akbeech@anchoragerescue.org on Thu, Apr 05, 2001 at 09:22:23AM -0800 References: <01Apr5.121906edt.115529@gateway.intersys.com> <01Apr5.122549edt.115375@gateway.intersys.com> <01040509222300.01510@galaxy.anchoragerescue.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010405193723.B1380>