Browse Source

httpd_flags was still used here; remove it.

Add a log socket in /var/www/dev/log if nginx is enabled, it is needed as
the openlog() call is done after chrooting.
ok brad@ florian@ deraadt@
OPENBSD_5_6
sthen 10 years ago
parent
commit
62f586f294
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/etc/rc.d/syslogd

+ 2
- 2
src/etc/rc.d/syslogd View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# #
# $OpenBSD: syslogd,v 1.1 2011/07/06 18:55:36 robert Exp $
# $OpenBSD: syslogd,v 1.2 2014/03/15 00:59:50 sthen Exp $
daemon="/usr/sbin/syslogd" daemon="/usr/sbin/syslogd"
@ -9,7 +9,7 @@ daemon="/usr/sbin/syslogd"
pexp="syslogd: \[priv\]" pexp="syslogd: \[priv\]"
rc_pre() { rc_pre() {
[ X"${httpd_flags}" != X"-u" ] && rm -f /var/www/dev/log && \
[ X"${nginx_flags}" != X"-u" ] && rm -f /var/www/dev/log && \
daemon_flags="${daemon_flags} -a /var/www/dev/log" daemon_flags="${daemon_flags} -a /var/www/dev/log"
[ X"${named_flags}" != X"NO" ] && rm -f /var/named/dev/log && \ [ X"${named_flags}" != X"NO" ] && rm -f /var/named/dev/log && \
daemon_flags="${daemon_flags} -a /var/named/dev/log" daemon_flags="${daemon_flags} -a /var/named/dev/log"


Loading…
Cancel
Save