# cp etc/rc.d/bandwidthd.sh.sample /usr/local/etc/rc.d/bandwidthd.sh
/etc/rc: WARNING: Ignoring old-style startup script /etc/rc.d/bandwidthd.sh
danaeckel said:Well, I tried that before I posted on the thread, and I tried it exactly how this reply went, and I get this error,
Code:/etc/rc: WARNING: Ignoring old-style startup script /etc/rc.d/bandwidthd.sh
I have FreeBSD 9.1, and installed bandwidth from ports if that matters.
Dana
# cd /usr/local/etc/rc.d/
# mv bandwidthd.sh bandwidthd
#!/bin/sh
#
# PROVIDE: utility
# REQUIRE: DAEMON
# KEYWORD: shutdown
. /etc/rc.subr
name="bandwidthd"
rcvar=`set_rcvar`
command="/usr/local/bandwidthd/bandwidthd"
load_rc_config $name
utility_enable=${utility_enable-"NO"}
utility_pidfile=${utility_pidfile-"/var/run/utility.pid"}
pidfile="${utility_pidfile}"
run_rc_command "$1"
bandwidthd_enable="YES"
# /usr/local/etc/rc.d/bandwidthd start