Browse Source

Make syslogd create a socket in /var/www/dev when httpd is enabled in order

to make logging to syslog work with php for example.
ok deraadt@, henning@
OPENBSD_4_6
robert 15 years ago
parent
commit
f539fed3d9
2 changed files with 12 additions and 2 deletions
  1. +7
    -1
      src/etc/mtree/4.4BSD.dist
  2. +5
    -1
      src/etc/rc

+ 7
- 1
src/etc/mtree/4.4BSD.dist View File

@ -1,4 +1,4 @@
# $OpenBSD: 4.4BSD.dist,v 1.197 2009/05/12 07:22:58 ajacoutot Exp $
# $OpenBSD: 4.4BSD.dist,v 1.198 2009/06/30 15:23:51 robert Exp $
/set type=dir uname=root gname=wheel mode=0755
# .
@ -2784,6 +2784,12 @@ vi.recover mode=01777
# ./www
www type=dir uname=root gname=daemon mode=755
# ./www/dev
dev type=dir uname=root gname=daemon mode=755
# ./www
..
# ./www/icons
icons type=dir uname=root gname=daemon mode=755


+ 5
- 1
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.326 2009/06/03 14:45:39 jj Exp $
# $OpenBSD: rc,v 1.327 2009/06/30 15:23:51 robert Exp $
# System startup script run by init on autoboot
# or after single-user.
@ -331,6 +331,10 @@ dmesg >/var/run/dmesg.boot
echo 'starting system logger'
rm -f /dev/log
if [ X"${httpd_flags}" != X"-u" ]; then
rm -f /var/www/dev/log
syslogd_flags="${syslogd_flags} -a /var/www/dev/log"
fi
if [ X"${named_flags}" != X"NO" ]; then
rm -f /var/named/dev/log
syslogd_flags="${syslogd_flags} -a /var/named/dev/log"


Loading…
Cancel
Save