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.

41 lines
651 B

  1. #!/bin/sh /etc/rc.common
  2. #
  3. # Copyright (C) 2018 rosysong@rosinson.com
  4. #
  5. . /lib/nft-qos/core.sh
  6. . /lib/nft-qos/monitor.sh
  7. . /lib/nft-qos/dynamic.sh
  8. . /lib/nft-qos/static.sh
  9. . /lib/nft-qos/priority.sh
  10. START=99
  11. USE_PROCD=1
  12. service_triggers() {
  13. procd_add_reload_trigger nft-qos
  14. }
  15. start_service() {
  16. config_load nft-qos
  17. qosdef_init_env
  18. qosdef_flush_static
  19. qosdef_flush_dynamic
  20. qosdef_remove_priority
  21. qosdef_init_header
  22. qosdef_init_monitor
  23. qosdef_init_dynamic
  24. qosdef_init_static
  25. qosdef_init_priority
  26. qosdef_init_done
  27. qosdef_start
  28. }
  29. stop_service() {
  30. qosdef_flush_dynamic
  31. qosdef_flush_static
  32. qosdef_remove_priority
  33. qosdef_clean_cache
  34. }