htbinit.rc 706 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #!/sbin/openrc-run
  2. # Copyright 1999-2016 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. extra_commands="stats list timecheck"
  5. extra_started_commands="reload"
  6. depend() {
  7. need net
  8. }
  9. start() {
  10. ebegin "Starting htbinit"
  11. /usr/sbin/htb.init start
  12. eend $?
  13. }
  14. stop() {
  15. ebegin "Stopping htbinit"
  16. /usr/sbin/htb.init stop
  17. eend $?
  18. }
  19. reload() {
  20. ebegin "Reloading htbinit"
  21. /usr/sbin/htb.init start invalidate
  22. eend $?
  23. }
  24. stats() {
  25. ebegin "Showing htbinit stats"
  26. /usr/sbin/htb.init stats
  27. eend $?
  28. }
  29. list() {
  30. ebegin "Showing htbinit list"
  31. /usr/sbin/htb.init list
  32. eend $?
  33. }
  34. timecheck() {
  35. ebegin "Showing htbinit timecheck"
  36. /usr/sbin/htb.init timecheck
  37. eend $?
  38. }