You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-misc/htbinit/files/htbinit.rc

47 lines
706 B

#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
extra_commands="stats list timecheck"
extra_started_commands="reload"
depend() {
need net
}
start() {
ebegin "Starting htbinit"
/usr/sbin/htb.init start
eend $?
}
stop() {
ebegin "Stopping htbinit"
/usr/sbin/htb.init stop
eend $?
}
reload() {
ebegin "Reloading htbinit"
/usr/sbin/htb.init start invalidate
eend $?
}
stats() {
ebegin "Showing htbinit stats"
/usr/sbin/htb.init stats
eend $?
}
list() {
ebegin "Showing htbinit list"
/usr/sbin/htb.init list
eend $?
}
timecheck() {
ebegin "Showing htbinit timecheck"
/usr/sbin/htb.init timecheck
eend $?
}