blob: 660ab19c52f41290d63347f9645a000314415b99 (
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
25
26
27
28
|
#!/bin/sh
#
# $NetBSD: pflogd,v 1.3 2008/06/18 09:06:26 yamt Exp $
#
# PROVIDE: pflogd
# REQUIRE: pf
# BEFORE: SERVERS
$_rc_subr_loaded . /etc/rc.subr
name="pflogd"
rcvar=$name
command="/sbin/${name}"
start_precmd="pflogd_precmd"
pidfile="/var/run/${name}.pid"
pflogd_precmd()
{
if ! ifconfig pflog0 >/dev/null 2>&1; then
ifconfig pflog0 create
fi
ifconfig pflog0 up
}
load_rc_config $name
run_rc_command "$1"
|