aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/bandwidthd/files/bandwidthd.in
blob: 5f168440c4b3e0a0d6a3e53c3cecf968d0a208a9 (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: bandwidthd
# REQUIRE: NETWORKING SERVERS
# BEFORE:  DAEMON
# KEYWORD: shutdown

# Add the following lines to /etc/rc.conf to enable bandwidthd:
# bandwidthd_enable (bool):	Set it to "YES" to enable bandwidthd.
#				Default is "NO".

bandwidthd_enable=${bandwidthd_enable:="NO"}

. /etc/rc.subr

name="bandwidthd"
rcvar="bandwidthd_enable"

command="%%PREFIX%%/bandwidthd/bandwidthd"
required_files="%%PREFIX%%/bandwidthd/etc/bandwidthd.conf"
pidfile="/var/run/bandwidthd.pid"

load_rc_config $name
run_rc_command "$1"