blob: 49e3aacb3139c5bf2e0af625d747b3b2269ffe42 (
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
47
|
#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/htbinit/files/htbinit.rc,v 1.3 2012/01/01 00:56:46 idl0r Exp $
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 $?
}
|