mirror of
https://git.freebsd.org/ports.git
synced 2025-05-18 01:53:13 -04:00
24 lines
540 B
Bash
24 lines
540 B
Bash
#!/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"
|