2004-06-29 08:48:28 +04:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2008-06-18 13:06:25 +04:00
|
|
|
# $NetBSD: pflogd,v 1.3 2008/06/18 09:06:26 yamt Exp $
|
2004-06-29 08:48:28 +04:00
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: pflogd
|
|
|
|
# REQUIRE: pf
|
|
|
|
# BEFORE: SERVERS
|
|
|
|
|
2004-08-13 22:08:03 +04:00
|
|
|
$_rc_subr_loaded . /etc/rc.subr
|
2004-06-29 08:48:28 +04:00
|
|
|
|
|
|
|
name="pflogd"
|
|
|
|
rcvar=$name
|
|
|
|
command="/sbin/${name}"
|
2008-06-18 13:06:25 +04:00
|
|
|
start_precmd="pflogd_precmd"
|
2004-06-29 08:48:28 +04:00
|
|
|
pidfile="/var/run/${name}.pid"
|
|
|
|
|
2008-06-18 13:06:25 +04:00
|
|
|
pflogd_precmd()
|
|
|
|
{
|
|
|
|
if ! ifconfig pflog0 >/dev/null 2>&1; then
|
|
|
|
ifconfig pflog0 create
|
|
|
|
fi
|
|
|
|
|
|
|
|
ifconfig pflog0 up
|
|
|
|
}
|
|
|
|
|
2004-06-29 08:48:28 +04:00
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|