Subject: Re: /usr/pkg/etc/rc.d/*
To: Frederick Bruckman <fredb@immanent.net>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: tech-pkg
Date: 06/11/2002 12:08:43
--SUOF0GtieIMvvwua
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jun 10, 2002 at 10:21:01PM -0500, Frederick Bruckman wrote:
> On Tue, 11 Jun 2002, Marton Fabo wrote:
> >
> > Is there an "official" settlement regarding how all the 3rd party
> > (package) daemons should be invoked at startup?
>=20
> In a word, "no".

yes and no.  it depends on your system version.

> > I mean, is there a way to launch them by an aggregate command, like
> > /etc/rc does with the system daemons, or each required one should be
> > explicitely started from /etc/rc.local?
>=20
> "rc.local"? You could just copy them into "/etc/rc.d/", and let
> "/etc/rc.subr" do it's stuff, but, no, there is no "settlement"
> (good word!).

it is possible in 1.6_BETA1 and -current.  see revision 1.37 of
/etc/defaults/rc.conf:

  revision 1.37
  date: 2002/05/19 01:01:33;  author: lukem;  state: Exp;  lines: +9 -1
  Add two new rc.conf(5) variables:
      rc_rcorder_flags            extra flags to rcorder(8) in /etc/rc
      rcshutdown_rcorder_flags    extra flags to rcorder(8) in /etc/rc.shut=
down
 =20
  This can be used to specify extra directories to search for rc.d scripts =
in.
  For example, adding the following to rc.conf(5):
          rc_rcorder_flags=3D"/usr/pkg/etc/rc.d/*"
          rcshutdown_rcorder_flags=3D"/usr/pkg/etc/rc.d/*"
  will add the files in /usr/pkg/etc/rc.d to the list of files that rcorder=
(8)
  uses to build the list of scripts to start or stop.
 =20
  I proposed this functionality on tech-userlevel@ over one month ago.
  Closes the recent [misc/16888], which asked for a similar feature.


another possibility is to set INSTALL_RCD_SCRIPTS to YES in /etc/mk.conf
and packages which install rc scripts with help from bsd.pkg.install.mk
will install their rc scripts directly to /etc/rc.d.


regards,


--=20
-- Lubomir Sedlacik <salo@Xtrmntr.org>   ASCII Ribbon campaign against  /"\=
 --
--                  <salo@silcnet.org>   e-mail in gratuitous HTML and  \ /=
 --
--                                       Microsoft proprietary formats   X =
 --
-- PGPkey: http://Xtrmntr.org/salo.pgp                                  / \=
 --
-- Key Fingerprint: DBEC 8BEC 9A90 ECEC 0FEF  716E 59CE B70B 7E3B 70E2     =
 --

--SUOF0GtieIMvvwua
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (NetBSD)

iD8DBQE9BcwrWc63C347cOIRAtywAJ4uydUyMosSYC5MdMmqV6G6Dd3w/QCfXt2e
kfwP+N2378YrIgny1q2hcuQ=
=GYYD
-----END PGP SIGNATURE-----

--SUOF0GtieIMvvwua--