From owner-freebsd-rc@FreeBSD.ORG Mon Sep 16 20:41:48 2013 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A8D8D167 for ; Mon, 16 Sep 2013 20:41:48 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2B0D02BF2 for ; Mon, 16 Sep 2013 20:41:48 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.7/8.14.7) with ESMTP id r8GKfh9G081730 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 16 Sep 2013 21:41:43 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk r8GKfh9G081730 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1379364104; bh=6eQhU1FjTbVjNBfLxcRaMJBAsFFf0F3QGW7adv5nG90=; h=Date:From:To:CC:Subject:References:In-Reply-To; z=Date:=20Mon,=2016=20Sep=202013=2021:41:35=20+0100|From:=20Matthew =20Seaman=20|To:=20Zeus=20Panchen ko=20|CC:=20freebsd-rc@freebsd.org|Subject:=20Re:= 20rc=20dependencies=20...|References:=20<20130916114741.99386@rela y.ibs.dn.ua>=20<52374988.7030901@infracaninophile.co.uk>=20<201309 16223753.73555@relay.ibs.dn.ua>|In-Reply-To:=20<20130916223753.735 55@relay.ibs.dn.ua>; b=fHuM3KoVuUwRUORLGUeKfbce7dlX53n60eQUqdPCrDVwYpL89KtwI/cwYTTb20C3I sAEtqRNxIJp/i3FX+OIlxP1+sIM2VVse3bZ8quBJr9OwmjkhwhE5Thf799SRPCDj+Y vC51PBKsG2GkgEw3z/uAMI0bq9Am/JBxgMMFTkps= Message-ID: <52376CFF.60009@infracaninophile.co.uk> Date: Mon, 16 Sep 2013 21:41:35 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Zeus Panchenko Subject: Re: rc dependencies ... References: <20130916114741.99386@relay.ibs.dn.ua> <52374988.7030901@infracaninophile.co.uk> <20130916223753.73555@relay.ibs.dn.ua> In-Reply-To: <20130916223753.73555@relay.ibs.dn.ua> X-Enigmail-Version: 1.5.2 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Ss0Smquvd2MUdBWTRTP1aTMGIdkn27OJD" X-Virus-Scanned: clamav-milter 0.97.8 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: freebsd-rc@freebsd.org X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Sep 2013 20:41:48 -0000 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 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--