Browse Source

Merge pull request #2397 from stintel/snmp

net-snmp: reload snmpd on interface events
lilik-openwrt-22.03
Jo-Philipp Wich 9 years ago
parent
commit
9f5057a175
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      net/net-snmp/files/snmpd.init

+ 7
- 0
net/net-snmp/files/snmpd.init View File

@ -230,5 +230,12 @@ stop_service() {
}
service_triggers(){
local script=$(readlink "$initscript")
local name=$(basename ${script:-$initscript})
procd_open_trigger
procd_add_raw_trigger "interface.*" 2000 /etc/init.d/$name reload
procd_close_trigger
procd_add_reload_trigger 'snmpd'
}

Loading…
Cancel
Save