blob: 5eb1dcb369ee7ec7db76e560e7938d0c4cf5149f (
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
|
#!/bin/sh
#
# PROVIDE: sflowtool
# REQUIRE: DAEMON
# Add the following line to /etc/rc.conf to enable sflowtool:
# sflowtool_enable="YES"
# sflowtool_flags="<set as needed>"
. /etc/rc.subr
name="sflowtool"
rcvar=`set_rcvar`
command="%%PREFIX%%/bin/sflowtool"
load_rc_config $name
# Set defaults
: ${sflowtool_enable="NO"}
: ${sflowtool_pidfile="/var/run/${name}.pid"}
start_cmd="/usr/sbin/daemon -f -p ${sflowtool_pidfile} ${command} ${sflowtool_flags}"
start_postcmd="echo Starting ${name}."
run_rc_command "$1"
|