Re: rc.d/localpkg

From: Scot Hetzel <swhetzel_at_gmail.com>
Date: Tue, 27 Jul 2004 09:49:16 -0500
On Tue, 27 Jul 2004 15:33:50 +0400, Alex Kapranoff <kappa_at_rambler-co.ru> wrote:
> * Mike Makonnen <mtm_at_identd.net> [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
Received on Tue Jul 27 2004 - 12:49:40 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:03 UTC