From 2eae4079183b6aed2f553c9d38e08ca2969cf8b5 Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Thu, 29 Dec 2016 11:57:45 -0800 Subject: [PATCH] updated BSD rc.d REQUIRE targets (#1750) A couple things have made this necessary: node depending on a shared libuv, and FreeBSD 11 having more async rc.d behavior. Without this change, the Haraka startup script can get called before ldconfig, resulting in this error: Shared object "libuv.so.1" not found, required by "node" --- contrib/bsd-rc.d/haraka | 3 ++- contrib/bsd-rc.d/p0f | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/contrib/bsd-rc.d/haraka b/contrib/bsd-rc.d/haraka index 79963cec1..ef3e53fd3 100644 --- a/contrib/bsd-rc.d/haraka +++ b/contrib/bsd-rc.d/haraka @@ -3,7 +3,8 @@ # tested on FreeBSD. Should work on NetBSD and Dragonfly # PROVIDE: haraka -# REQUIRE: networking syslog +# REQUIRE: NETWORKING ldconfig +# KEYWORD: shutdown . /etc/rc.subr diff --git a/contrib/bsd-rc.d/p0f b/contrib/bsd-rc.d/p0f index 194bf9979..fcd72638e 100755 --- a/contrib/bsd-rc.d/p0f +++ b/contrib/bsd-rc.d/p0f @@ -1,9 +1,7 @@ #!/bin/sh # PROVIDE: p0f -# REQUIRE: ezjail -# BEFORE: DAEMON -# KEYWORD: shutdown +# REQUIRE: NETWORKING # Add the following lines to /etc/rc.conf to enable `p0f': #