Sync usage with man page.
[netbsd-mini2440.git] / etc / rc.d / pflogd
blob60d555f19727903a1b45347e0a90811217566731
1 #!/bin/sh
3 # $NetBSD: pflogd,v 1.2 2004/08/13 18:08:03 mycroft Exp $
6 # PROVIDE: pflogd
7 # REQUIRE: pf
8 # BEFORE: SERVERS
10 $_rc_subr_loaded . /etc/rc.subr
12 name="pflogd"
13 rcvar=$name
14 command="/sbin/${name}"
15 start_precmd="pflogd_precmd"
16 pidfile="/var/run/${name}.pid"
18 pflogd_precmd()
20 if ! ifconfig pflog0 >/dev/null 2>&1; then
21 ifconfig pflog0 create
24 ifconfig pflog0 up
27 load_rc_config $name
28 run_rc_command "$1"