Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Feb 2008 11:18:09 +0100
From:      Ivan Voras <ivoras@freebsd.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: script to be executed on system startup.
Message-ID:  <foelqi$5so$1@ger.gmane.org>
In-Reply-To: <47616.9193782427$1202324783@news.gmane.org>
References:  <1563a4fd0802060609j59451879h3920be790d7667c0@mail.gmail.com>	<fochm5$gre$1@ger.gmane.org> <47616.9193782427$1202324783@news.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigB6C1C4142A3DACC5BD761E98
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

RW wrote:
> On Wed, 06 Feb 2008 15:55:12 +0100
> Ivan Voras <ivoras@freebsd.org> wrote:
>=20
>=20
>> I've seen some complicated examples on this thread, and want to
>> suggest a simple one:
>>
>> 1. create a regular shell script in /etc/rc.d, n
>> ..
>> A more semantically pure example (and the one that's preferred if your=

>> script starts an external application - a web server or something like=

>> that) is to put the script in /usr/local/etc/rc.d. In any case, the
>> syntax and everything else is the same.
>=20
> This is a bit muddled.
>=20
> /etc/rc.d is for system RCNG scripts.
>=20
> /usr/local/etc/rc.d is for local RCNG scripts and legacy scripts

You are right - I was trying to simplify it too much.

> that simply respond to stop/start in $1. Legacy scripts end in .sh and
> are called from /etc/rc.d/localpkg in dictionary order.
>=20
> Since the OP appears to have such a script it should be given a ".sh"
> extension and placed in /usr/local/etc/rc.d, not in /etc/rc.d.=20

Thanks for the clarification!


--------------enigB6C1C4142A3DACC5BD761E98
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHqtrhldnAQVacBcgRAo0aAJ4p6lLu1s0SKlFOfU96ktE+5TZdgwCeOjVw
6OPlP7Iv/FXP95g/K7S1uTI=
=XhE/
-----END PGP SIGNATURE-----

--------------enigB6C1C4142A3DACC5BD761E98--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?foelqi$5so$1>