summaryrefslogtreecommitdiff
path: root/etc/rc
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-01-20 20:42:29 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-01-20 20:42:29 +0000
commit1e0e14afd43f014b6c2222fa057d425f9853876f (patch)
tree770b01e1db42467a9a370f4a7f9050fd08ab960c /etc/rc
parent8f07ed976ff2426c745d4d7f3971968b089c3c3c (diff)
Add a /var/empty/dev/log socket for things that chroot to /var/empty.
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc7
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index 7a7115cea4c..693db85d6ee 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.215 2003/01/15 09:25:46 camield Exp $
+# $OpenBSD: rc,v 1.216 2003/01/20 20:42:28 millert Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -191,6 +191,11 @@ if [ "X${named_flags}" != X"NO" -a "X${named_chroot}" != "X" ]; then
rm -f ${named_chroot}/dev/log
syslogd_flags="${syslogd_flags} -a ${named_chroot}/dev/log"
fi
+if [ -d /var/empty ]; then
+ rm -f /var/empty/dev/log
+ mkdir -p -m 0555 /var/empty/dev
+ syslogd_flags="${syslogd_flags} -a /var/empty/dev/log"
+fi
syslogd ${syslogd_flags}
if [ X"${pf}" != X"NO" -a X"${pflogd_flags}" != X"NO" ]; then