diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2014-03-24 09:24:10 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2014-03-24 09:24:10 +0000 |
commit | 03cb0b0f40526d4ac0287c5419426f1b3ba48d6e (patch) | |
tree | 29873d1a3b88cf96ced483e2e9c63f6244bee9c8 | |
parent | be70f1e0e07a6232f5d619bff4f2479d93c6e733 (diff) |
Add /var/unbound/dev/log, it isn't needed for initial startup because Unbound
opens the log before chrooting, but this handles the case where syslogd is
restarted during Unbound's runtime.
-rw-r--r-- | etc/mtree/4.4BSD.dist | 7 | ||||
-rw-r--r-- | etc/rc.d/syslogd | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/etc/mtree/4.4BSD.dist b/etc/mtree/4.4BSD.dist index 2c92afb50d2..04aaace6ec0 100644 --- a/etc/mtree/4.4BSD.dist +++ b/etc/mtree/4.4BSD.dist @@ -1,4 +1,4 @@ -# $OpenBSD: 4.4BSD.dist,v 1.245 2014/03/21 00:23:15 sthen Exp $ +# $OpenBSD: 4.4BSD.dist,v 1.246 2014/03/24 09:24:09 sthen Exp $ /set type=dir uname=root gname=wheel mode=0755 # . @@ -1357,6 +1357,11 @@ vi.recover mode=01777 # ./var/unbound unbound +# ./var/unbound/dev +dev uname=root gname=wheel mode=0755 +# ./var/unbound/dev +.. + # ./var/unbound/etc etc uname=root gname=wheel mode=0755 # ./var/unbound/etc diff --git a/etc/rc.d/syslogd b/etc/rc.d/syslogd index 06062bfef04..bd023755b2b 100644 --- a/etc/rc.d/syslogd +++ b/etc/rc.d/syslogd @@ -1,6 +1,6 @@ #!/bin/sh # -# $OpenBSD: syslogd,v 1.2 2014/03/15 00:59:50 sthen Exp $ +# $OpenBSD: syslogd,v 1.3 2014/03/24 09:24:09 sthen Exp $ daemon="/usr/sbin/syslogd" @@ -15,6 +15,8 @@ rc_pre() { daemon_flags="${daemon_flags} -a /var/named/dev/log" [ X"${nsd_flags}" != X"NO" ] && rm -f /var/nsd/dev/log && \ daemon_flags="${daemon_flags} -a /var/nsd/dev/log" + [ X"${unbound_flags}" != X"NO" ] && rm -f /var/unbound/dev/log && \ + daemon_flags="${daemon_flags} -a /var/unbound/dev/log" [ -d /var/empty ] && rm -f /var/empty/dev/log && \ mkdir -p -m 0555 /var/empty/dev && \ daemon_flags="${daemon_flags} -a /var/empty/dev/log" |