From owner-freebsd-current@FreeBSD.ORG Tue Jul 27 14:49:40 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 232A516A4CE for ; Tue, 27 Jul 2004 14:49:40 +0000 (GMT) Received: from mproxy.gmail.com (mproxy.gmail.com [216.239.56.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E06843D62 for ; Tue, 27 Jul 2004 14:49:40 +0000 (GMT) (envelope-from swhetzel@gmail.com) Received: by mproxy.gmail.com with SMTP id x71so45772cwb for ; Tue, 27 Jul 2004 07:49:16 -0700 (PDT) Received: by 10.11.119.56 with SMTP id r56mr93609cwc; Tue, 27 Jul 2004 07:49:16 -0700 (PDT) Message-ID: <790a9fff04072707497059c616@mail.gmail.com> Date: Tue, 27 Jul 2004 09:49:16 -0500 From: Scot Hetzel To: Alex Kapranoff In-Reply-To: <20040727113350.GA63833@capella.park.rambler.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <9B5C1FCAFB35084787C21EFFFA78DD9EE48B@EBE1.gc.nat> <20040727113350.GA63833@capella.park.rambler.ru> cc: "Robin P. Blanchard" cc: current@freebsd.org cc: Mike Makonnen Subject: Re: rc.d/localpkg X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jul 2004 14:49:40 -0000 On Tue, 27 Jul 2004 15:33:50 +0400, Alex Kapranoff wrote: > * Mike Makonnen [July 27 2004, 11:42]: > > On Mon, Jul 26, 2004 at 03:00:53PM -0400, Robin P. Blanchard wrote: > > > How does this apply to beasts such as postfix which recommends: > > > > > > cd /usr/local/etc/rc.d > > > ln -s /usr/local/sbin/postfix postfix.sh > > > > That depends. If sbin/postfix is an old-style script then nothing will > > have changed. It gets sourced same as before. If it's an rc.d script then > > it will probably have to be patched to conform to rc.d style. > > % file =postfix > /usr/local/sbin/postfix: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 5.0.2, dynamically linked (uses shared libs), not stripped > Since the program postfix is not a shell script the recommendation is to create a rcNG shell script to start and stop postfix, instead of creating a link to the executeable. This way you could pass flags to postfix by defining postfix_flags in /etc/rc.conf, /etc/rc.conf.local, or /etc/rc.conf.d/postfix. Scot