irqbalance: support reload_config & start later 11500/head
authorMarc Benoit <marcb62185@gmail.com>
Tue, 3 Mar 2020 12:48:27 +0000 (07:48 -0500)
committerMarc Benoit <marcb62185@gmail.com>
Tue, 3 Mar 2020 23:05:52 +0000 (18:05 -0500)
Added support for reload_config

This service does not need to start so early (even
before the netwrok is up). Start it after
the device is mostly up and operational.

Compile-tested on: ipq806x
Runtime-tested on: ipq806x

Signed-off-by: Marc Benoit <marcb62185@gmail.com>
(cherry picked from commit b6078559cdd47b4def5bb44dd46759a8591f3e4f)

utils/irqbalance/Makefile
utils/irqbalance/files/irqbalance.init

index a0ebac2da24fc63422e7839b0f88f6107f5aa730..88172afddb11fd97fea39390c1b14cfbfe4d259f 100644 (file)
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=irqbalance
 PKG_VERSION:=1.6.0
-PKG_RELEASE:=6
+PKG_RELEASE:=7
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_PROTO:=git
index 3f968d075640d215ad83d8caa41f98b6a9edd727..638dcb39f65ae4973424495926f795da6b74b366 100644 (file)
@@ -1,8 +1,15 @@
 #!/bin/sh /etc/rc.common
 
-START=11
+START=90
+STOP=10
+
 USE_PROCD=1
 
+service_triggers()
+{
+       procd_add_reload_trigger "irqbalance"
+}
+
 start_service() {
        local enabled
        config_load 'irqbalance'
@@ -25,4 +32,3 @@ start_service() {
        procd_set_param respawn
        procd_close_instance
 }
-