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

next in thread | previous in thread | raw e-mail | index | archive | help
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matthew Seaman <m.seaman@infracaninophile.co.uk> wrote:
> > 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
> ...
>

I figured it out that I need it look this way:
#> cat /usr/local/etc/rc.d/1order
#!/bin/sh
#
# Make isc-dhcpd start after openvpn and slapd

# PROVIDE: precedence
# REQUIRE: slapd openvpn
# BEFORE: dhcpd

it resolves to this scenary:

#> rcorder /etc/rc.d/* /usr/local/etc/rc.d/*
...
/etc/rc.d/yppasswdd
/usr/local/etc/rc.d/openvpn
/usr/local/etc/rc.d/slapd
/usr/local/etc/rc.d/1order
/usr/local/etc/rc.d/isc-dhcpd
/usr/local/etc/rc.d/smartd
/etc/rc.d/LOGIN
...

so, now another question: where to can I set `sleep 2' to wait for a 2 seco=
nds
after openvpn but before slapd start?=20

since openvpn inteface starts not instantly I have to be sure slapd will
be able to find master for replication, which is behind openvpn
interface.

=2D --=20
Zeus V. Panchenko				jid:zeus@im.ibs.dn.ua
IT Dpt., I.B.S. LLC					  GMT+2 (EET)
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEARECAAYFAlKceK0ACgkQr3jpPg/3oyr7AACdGVHU74l6ZYNkZSo4Pwo4EED8
ZT0An1Ihq9QfiALGljthCBacB6Ch0dFV
=3D2Me0
=2D----END PGP SIGNATURE-----



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