aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/fprobe/files/fprobe.in
blob: dbe64db71379d55eb504c97b33654041bfc230fd (plain) (blame)
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
29
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: fprobe
# REQUIRE: NETWORKING
# KEYWORD: shutdown

# Add the following lines to /etc/rc.conf to enable fprobe:
#
# fprobe_enable="YES"
#
# See fprobe(8) for fprobe_flags
#

. /etc/rc.subr

name="fprobe"
rcvar=fprobe_enable

load_rc_config "$name"

: ${fprobe_enable="NO"}
: ${fprobe_flags:="-i lo0 127.0.0.1:2055"}

command="%%PREFIX%%/sbin/fprobe"
pidfile="/var/run/$name.pid"

run_rc_command "$1"