Hacker News new | ask | show | jobs
by bmir-alum-007 3957 days ago
FBSD: I was just dealing with circular dependency hell (or misunderstanding of docs/conventions) in some rc.d scripts.

Maybe someone here knows how to do this properly (or better):

    # /usr/local/etc/rc.d/dnscrypt-proxy
    #
    # PROVIDE: dnscrypt_proxy
    # REQUIRE: ldconfig cleanvar NETWORKING
    # BEFORE: SERVERS local_unbound
    # KEYWORD: shutdown
^--- REQUIRE: ... NETWORKING always seems to cause a circular dependency (as per running: rcorder /etc/rc.d/* /usr/local/etc/rc.d/*)

Help appreciated, not required, just showing a real-life example.

1 comments

did you open a bug? this should be fixed in the port, not on your local machine.