rc dependencies ...
Zeus Panchenko
zeus at ibs.dn.ua
Mon Dec 2 12:14:56 UTC 2013
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Matthew Seaman <m.seaman at 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 seconds
after openvpn but before slapd start?
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.
- --
Zeus V. Panchenko jid:zeus at im.ibs.dn.ua
IT Dpt., I.B.S. LLC GMT+2 (EET)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)
iEYEARECAAYFAlKceK0ACgkQr3jpPg/3oyr7AACdGVHU74l6ZYNkZSo4Pwo4EED8
ZT0An1Ihq9QfiALGljthCBacB6Ch0dFV
=2Me0
-----END PGP SIGNATURE-----
More information about the freebsd-rc
mailing list