From owner-freebsd-rc@FreeBSD.ORG Mon Sep 16 18:10:22 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 C779B6A1 for ; Mon, 16 Sep 2013 18:10:22 +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 6DC5D2193 for ; Mon, 16 Sep 2013 18:10:22 +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 r8GIAGQk078661 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 16 Sep 2013 19:10:17 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk r8GIAGQk078661 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1379355017; bh=ol6n62LNN0ikFVyNEACyM5c6hMvzV6+Jbh4AcAdJ1wo=; h=Date:From:To:CC:Subject:References:In-Reply-To; z=Date:=20Mon,=2016=20Sep=202013=2019:10:16=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>|In-Reply-To:=20<20130916114741.99386@relay.ibs.dn.ua> ; b=FkjbBF69P/jUbfQEp5uVZWcY3/DP7JTX2n68bXuOVWXpA8fBIngWZdp6oQ2w7wKq5 1slKZMbZs7TwiysuYwnRiWsh0Lyl6wr1h/CzcAODnco9p71in+YvvaBpPw3UsiHLg6 ea/gA5lTRfARw9mMc861Lv9MJFsu9kO/lIP7sphA= Message-ID: <52374988.7030901@infracaninophile.co.uk> Date: Mon, 16 Sep 2013 19:10:16 +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> In-Reply-To: <20130916114741.99386@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="3DLc8ee0JhmvQaRu5erpkD6fm0KmxSRPm" 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 18:10:22 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --3DLc8ee0JhmvQaRu5erpkD6fm0KmxSRPm Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 16/09/2013 09:47, Zeus Panchenko wrote: > hi, >=20 > please, help me to understand better scripts dependencies, how to make > one rc script wait for other ... >=20 > for my dhcpd configured with LDAP, I need to start=20 > /usr/local/etc/rc.d/isc-dhcpd=20 > only after=20 > /usr/local/etc/rc.d/slapd >=20 > for what I edited /usr/local/etc/rc.d/isc-dhcpd >=20 > --- isc-dhcpd~ 2013-08-31 15:45:32.202899511 +0300 > +++ isc-dhcpd 2013-09-04 18:32:36.297221926 +0300 > @@ -3,7 +3,7 @@ > # $FreeBSD: branches/RELENG_9_1_0/net/isc-dhcp42-server/files/isc-dhcp= d.in 300897 2012-07-14 14:29:18Z beat $ > # > # PROVIDE: dhcpd > -# REQUIRE: DAEMON > +# REQUIRE: DAEMON slapd > # BEFORE: LOGIN > # KEYWORD: shutdown > # >=20 > but after reboot, dhcpd still complains: > Sep 16 10:02:41 bo20 dhcpd: Error: Cannot start TLS session to foo.bar:= 389: Can't contact LDAP server >=20 > when launched by hands, /usr/local/etc/rc.d/isc-dhcpd starts normally >=20 >=20 > so, where is my mistake, why is it not waiting for /usr/local/etc/rc.d/= slapd ? >=20 You can force one daemon to start after another one without editing any of the existing RC scripts (likely to get blown away when you update 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 Test the resulting startup order by: rcorder /etc/rc.d/* /usr/local/etc/rc.d/* Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matthew@infracaninophile.co.uk --3DLc8ee0JhmvQaRu5erpkD6fm0KmxSRPm 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/ iEYEARECAAYFAlI3SYgACgkQ8Mjk52CukIyWQACffoS8yP9LvCrC4DraskDf6AMr aMsAoIlfoFu0y36LnUNfQcBrzS8d/0VH =30X0 -----END PGP SIGNATURE----- --3DLc8ee0JhmvQaRu5erpkD6fm0KmxSRPm--