Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Sep 2013 11:47:41 +0300
From:      "Zeus Panchenko" <zeus@ibs.dn.ua>
To:        <freebsd-rc@freebsd.org>
Subject:   rc dependencies ...
Message-ID:  <20130916114741.99386@relay.ibs.dn.ua>

next in thread | raw e-mail | index | archive | help
hi,

please, help me to understand better scripts dependencies, how to make
one rc script wait for other ...

for my dhcpd configured with LDAP, I need to start 
/usr/local/etc/rc.d/isc-dhcpd 
only after 
/usr/local/etc/rc.d/slapd

for what I edited /usr/local/etc/rc.d/isc-dhcpd

--- 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-dhcpd.in 300897 2012-07-14 14:29:18Z beat $
 #
 # PROVIDE: dhcpd
-# REQUIRE: DAEMON
+# REQUIRE: DAEMON slapd
 # BEFORE: LOGIN
 # KEYWORD: shutdown
 #

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

when launched by hands, /usr/local/etc/rc.d/isc-dhcpd starts normally


so, where is my mistake, why is it not waiting for /usr/local/etc/rc.d/slapd ?

-- 
Zeus V. Panchenko				jid:zeus@im.ibs.dn.ua
IT Dpt., I.B.S. LLC					  GMT+2 (EET)



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