Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Sep 2013 21:41:35 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Zeus Panchenko <zeus@ibs.dn.ua>
Cc:        freebsd-rc@freebsd.org
Subject:   Re: rc dependencies ...
Message-ID:  <52376CFF.60009@infracaninophile.co.uk>
In-Reply-To: <20130916223753.73555@relay.ibs.dn.ua>
References:  <20130916114741.99386@relay.ibs.dn.ua> <52374988.7030901@infracaninophile.co.uk> <20130916223753.73555@relay.ibs.dn.ua>

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

On 16/09/2013 20:37, Zeus Panchenko wrote:
> thank you Mathew for soon reply,
>=20
> Matthew Seaman <m.seaman@infracaninophile.co.uk> wrote:
>> ...=20
>> that package) by adding an additional RC script like so:
>>
>> #!/bin/sh
>> #
>> # Make isc-dhcpd start after slapd
>>
>> # PROVIDE: precedence
>> # REQUIRE: slapd
>> # BEFORE: isc-dhcpd
>=20
> I have added it
>=20
> :> cat /usr/local/etc/rc.d/1order
> #!/bin/sh
> #
> # Make isc-dhcpd start after slapd
>=20
> # PROVIDE: precedence
> # REQUIRE: slapd
> # BEFORE: isc-dhcpd
>=20
>=20
>>
>> Test the resulting startup order by:
>>   rcorder /etc/rc.d/* /usr/local/etc/rc.d/*
>=20
> here the result:
>=20
> ...
> /etc/rc.d/yppasswdd
> /usr/local/etc/rc.d/isc-dhcpd
> /usr/local/etc/rc.d/isc-dhcpd6
> /usr/local/etc/rc.d/svnserve
> /etc/rc.d/LOGIN
> /usr/local/etc/rc.d/tinyproxy
> /usr/local/etc/rc.d/svscan
> /usr/local/etc/rc.d/smartd
> /usr/local/etc/rc.d/slapd
> ...
>=20
>=20
> is it correct?

Hmmm... doesn't look right.  Check what the PROVIDES lines in isc-dhcpd
[*] and slapd actually say -- usually they're the same as the name of
the RC script.  You need to use the PROVIDES token from those files as
the term you match against for REQUIRE or BEFORE.

	Cheers,

	Matthew

[*] It seems isc-dhcpd actually PROVIDES dhcpd rather than isc-dhcpd.
My mistake.  s/isc-dhcpd/dhcpd/g in your 1order script.

--=20
Dr Matthew J Seaman MA, D.Phil.

PGP: http://www.infracaninophile.co.uk/pgpkey
JID: matthew@infracaninophile.co.uk


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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlI3bQcACgkQ8Mjk52CukIxKYwCdGkaJPboCijeZsHTER0RnQYS/
urcAn02AIePHj66NSkd5HNIdybRPLO5y
=LdOo
-----END PGP SIGNATURE-----

--Ss0Smquvd2MUdBWTRTP1aTMGIdkn27OJD--



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