From owner-freebsd-stable@FreeBSD.ORG Sun Jan 8 01:04:54 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C62DF16A41F; Sun, 8 Jan 2006 01:04:54 +0000 (GMT) (envelope-from mnag@FreeBSD.org) Received: from mail.grupos.com.br (mail.grupos.com.br [200.203.183.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4713A43D46; Sun, 8 Jan 2006 01:04:54 +0000 (GMT) (envelope-from mnag@FreeBSD.org) Received: from corp.grupos.com.br (unknown [200.102.2.99]) by mail.grupos.com.br (Postfix) with ESMTP id 5A7D6210C9; Sat, 7 Jan 2006 23:04:52 -0200 (BRST) Received: from [192.168.1.3] (201-25-249-114.fnsce703.dsl.brasiltelecom.net.br [201.25.249.114]) (Authenticated sender: marcus@corp.grupos.com.br) by corp.grupos.com.br (Postfix) with ESMTP id 650CE54F5; Sat, 7 Jan 2006 23:04:50 -0200 (BRST) Message-ID: <43C0652D.90709@FreeBSD.org> Date: Sat, 07 Jan 2006 23:04:45 -0200 From: Marcus Alves Grando User-Agent: Thunderbird 1.5 (X11/20060103) MIME-Version: 1.0 To: Doug Barton References: <43BD2794.8020000@cnptia.embrapa.br> <43C01C75.6020504@FreeBSD.org> In-Reply-To: <43C01C75.6020504@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Carlos Fernando Assis Paniago , freebsd-stable@freebsd.org, vivek@khera.org Subject: Re: Postfix and faststart X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jan 2006 01:04:54 -0000 Doug, I will add your rcNG script in mail/postfix* Thanks Doug Barton wrote: > Carlos Fernando Assis Paniago wrote: >> Hi: after the last cvsup, my FreeBSD 6.0, i386 is not capable to start >> postfix. I'm using the link in the /usr/local/etc/rc.d/postfix.sh to >> start the postfix program. Looking in the code, I saw that we need to >> change this in a file in /usr/local/etc/postfix/postfix-script to have >> the "faststart" flag.. Someone else find this problem? > > The way that it is suggested to start postfix in the pkg-message (by > placing > a link to /usr/local/sbin/postfix in /usr/local/etc/rc.d) is no longer > valid with the new rc.d code in -stable. I've attached a script that > works for me to start and stop postfix. Please remove the symlink you > have in /usr/local/etc/rc.d now, and put this script in its place. Make > sure that the script is executable (chmod 755 > /usr/local/etc/rc.d/postfix.sh), then 'echo postfix_enable=yes >> > /etc/rc.conf.local' and reboot. Then please let us know for sure that > this worked for you. > > If the maintainer would like help including this in the port, I'd be > glad to do so. If you want to create the update yourself, take a look at > ports/misc/compat5x to see how to integrate this, or I'd be glad to work > on it with you. > > hth, > > Doug > > > ------------------------------------------------------------------------ > > #!/bin/sh > # > # $FreeBSD$ > # > # PROVIDE: postfix > # REQUIRE: DAEMON > # KEYWORD: shutdown > # > # Define these postfix_* variables in one of these files: > # /etc/rc.conf > # /etc/rc.conf.local > # /etc/rc.conf.d/postfix > # > # DO NOT CHANGE THESE DEFAULT VALUES HERE > # > postfix_enable="${postfix_enable-NO}" > > . /etc/rc.subr > > name=postfix > rcvar=`set_rcvar` > > start_cmd=${name}_start > stop_cmd=${name}_stop > > postfix_start() { > /usr/local/sbin/postfix start > } > > postfix_stop() { > /usr/local/sbin/postfix stop > } > > load_rc_config ${name} > run_rc_command "$1" > > > > ------------------------------------------------------------------------ > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" -- Marcus Alves Grando marcus(at)corp.grupos.com.br | Grupos Internet S/A mnag(at)FreeBSD.org | FreeBSD.org