Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jun 2008 23:34:04 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        fred <fred@fullmetalpacket.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: priority or order for /usr/local/etc/rc.d scripts?
Message-ID:  <20080630213404.GA6514@slackbox.xs4all.nl>
In-Reply-To: <011801c8daf1$281caac0$78560040$@com>
References:  <011801c8daf1$281caac0$78560040$@com>

next in thread | previous in thread | raw e-mail | index | archive | help

--X1bOJ3K7DJ5YkBrT
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jun 30, 2008 at 04:37:47PM -0400, fred wrote:
> Hi guys,
>=20
> Basically, I have 2 scripts in the folder /usr/local/etc/rc.d/
>=20
> Resin.sh and apache.sh

Are these the scripts provided by the ports? They should be installed
without the '.sh' extension. See rc(8).

> I need resin to be started when apache is starting, how can I do that? I
> can't find any documentation on priority or order for startup scripts.

See the manual pages for rc(8) and rcorder(8).=20

Basically, you need to put a number of special comments in the scripts
for the rc system to work with them. For instance, the script for resin
(made from /usr/ports/www/resin3/files/resin.sh.in) should be modified like:

# REQUIRE: LOGIN apache22

The latter is provided by the startup script installed by apache. This
is generated from /usr/ports/www/apache22/files/apache22.sh.in.=20

Both should of course be enabled in /etc/rc.conf:

apache22_enable=3D"YES"
resin_enable=3D"YES"

Roland
--=20
R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEARECAAYFAkhpUUwACgkQEnfvsMMhpyX3nACdGwL76g+NLJoPsPh6+De/JcHO
B70AoJp0agWFkkgn3GQ+4MZtRLsFNi1F
=+htI
-----END PGP SIGNATURE-----

--X1bOJ3K7DJ5YkBrT--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080630213404.GA6514>