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