diff options
Diffstat (limited to 'net/unbound/files/smf/unbound.sh')
-rw-r--r-- | net/unbound/files/smf/unbound.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/unbound/files/smf/unbound.sh b/net/unbound/files/smf/unbound.sh new file mode 100644 index 00000000000..b6ae25b956a --- /dev/null +++ b/net/unbound/files/smf/unbound.sh @@ -0,0 +1,11 @@ +#!/sbin/sh +# $NetBSD: unbound.sh,v 1.1.2.2 2015/10/26 20:12:12 bsiegert Exp $ +. /lib/svc/share/smf_include.sh + +if [ ! -d @VARBASE@/run/unbound ]; then + @MKDIR@ @VARBASE@/run/unbound + @CHMOD@ 0750 @VARBASE@/run/unbound + @CHOWN@ @UNBOUND_USER@:@UNBOUND_GROUP@ @VARBASE@/run/unbound +fi + +@PREFIX@/sbin/unbound -c "$1" |