summaryrefslogtreecommitdiff
path: root/etc/rc.d/syslogd
blob: 8f82c846e59c64111efa45c01aefab1ad23b09d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
#
# $OpenBSD: syslogd,v 1.1 2011/07/06 18:55:36 robert Exp $

daemon="/usr/sbin/syslogd"

. /etc/rc.d/rc.subr

pexp="syslogd: \[priv\]"

rc_pre() {
	[ X"${httpd_flags}" != X"-u" ] && rm -f /var/www/dev/log && \
		daemon_flags="${daemon_flags} -a /var/www/dev/log"
	[ X"${named_flags}" != X"NO" ] && rm -f /var/named/dev/log && \
		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"
	[ -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"
	rm -f /dev/log
}

rc_cmd $1