NetBSD/etc/rc.d/pflogd

29 lines
422 B
Plaintext
Raw Normal View History

2004-06-29 08:48:28 +04:00
#!/bin/sh
#
# $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
$_rc_subr_loaded . /etc/rc.subr
2004-06-29 08:48:28 +04:00
name="pflogd"
rcvar=$name
command="/sbin/${name}"
start_precmd="pflogd_precmd"
2004-06-29 08:48:28 +04:00
pidfile="/var/run/${name}.pid"
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"