Browse Source

switch pflogd to rc.d

OPENBSD_5_0
robert 13 years ago
parent
commit
20b0c2671a
3 changed files with 15 additions and 6 deletions
  1. +2
    -2
      src/etc/Makefile
  2. +2
    -4
      src/etc/rc
  3. +11
    -0
      src/etc/rc.d/pflogd

+ 2
- 2
src/etc/Makefile View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.303 2011/07/07 23:29:45 robert Exp $
# $OpenBSD: Makefile,v 1.304 2011/07/08 00:50:09 robert Exp $
TZDIR= /usr/share/zoneinfo TZDIR= /usr/share/zoneinfo
LOCALTIME= Canada/Mountain LOCALTIME= Canada/Mountain
@ -33,7 +33,7 @@ BIN2= motd
# -r-xr-xr-x # -r-xr-xr-x
RCDAEMONS= apmd aucat bgpd bootparamd btd cron dhcpd dhcrelay dvmrpd ftpd \ RCDAEMONS= apmd aucat bgpd bootparamd btd cron dhcpd dhcrelay dvmrpd ftpd \
ftpproxy hostapd hotplugd httpd identd ifstated iked inetd isakmpd \ ftpproxy hostapd hotplugd httpd identd ifstated iked inetd isakmpd \
ldapd ldattach ldpd lpd mopd mrouted named nsd ntpd portmap \
ldapd ldattach ldpd lpd mopd mrouted named nsd ntpd portmap pflogd \
rarpd rbootd relayd ripd route6d rtadvd rtsold rwhod sasyncd \ rarpd rbootd relayd ripd route6d rtadvd rtsold rwhod sasyncd \
sendmail sensorsd smtpd snmpd spamd sshd syslogd watchdogd wsmoused \ sendmail sensorsd smtpd snmpd spamd sshd syslogd watchdogd wsmoused \
xdm ypbind ypldap yppasswdd ypserv xdm ypbind ypldap yppasswdd ypserv


+ 2
- 4
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.369 2011/07/08 00:17:15 robert Exp $
# $OpenBSD: rc,v 1.370 2011/07/08 00:50:09 robert Exp $
# System startup script run by init on autoboot # System startup script run by init on autoboot
# or after single-user. # or after single-user.
@ -359,9 +359,7 @@ if [ X"${pf}" != X"NO" ]; then
ifconfig pflog0 create >/dev/null 2>&1 ifconfig pflog0 create >/dev/null 2>&1
if ifconfig pflog0 >/dev/null 2>&1; then if ifconfig pflog0 >/dev/null 2>&1; then
ifconfig pflog0 up ifconfig pflog0 up
if [ X"${pflogd_flags}" != X"NO" ]; then
pflogd ${pflogd_flags}
fi
start_daemon pflogd
fi fi
fi fi


+ 11
- 0
src/etc/rc.d/pflogd View File

@ -0,0 +1,11 @@
#!/bin/sh
#
# $OpenBSD: pflogd,v 1.1 2011/07/08 00:50:09 robert Exp $
daemon="/sbin/pflogd"
. /etc/rc.d/rc.subr
pexp="pflogd: \[priv\]"
rc_cmd $1

Loading…
Cancel
Save