rc dependencies ...

Matthew Seaman m.seaman at infracaninophile.co.uk
Mon Sep 16 20:41:48 UTC 2013


On 16/09/2013 20:37, Zeus Panchenko wrote:
> thank you Mathew for soon reply,
> 
> Matthew Seaman <m.seaman at infracaninophile.co.uk> wrote:
>> ... 
>> 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
> 
> I have added it
> 
> :> cat /usr/local/etc/rc.d/1order
> #!/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/*
> 
> here the result:
> 
> ...
> /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
> ...
> 
> 
> 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.

-- 
Dr Matthew J Seaman MA, D.Phil.

PGP: http://www.infracaninophile.co.uk/pgpkey
JID: matthew at infracaninophile.co.uk

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 268 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-rc/attachments/20130916/a8ae66fd/attachment.sig>


More information about the freebsd-rc mailing list