summaryrefslogtreecommitdiff
blob: 219ad04a37e73ca07451baa5368a8630fe52d50f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/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 $?
}