Merge pull request #9451 from alinnastac/snmp-firewall-reload
net-snmp: reload firewall only when needed
This commit is contained in:
commit
665ec53cd8
1 changed files with 3 additions and 1 deletions
|
@ -337,7 +337,8 @@ start_service() {
|
||||||
}
|
}
|
||||||
|
|
||||||
stop_service() {
|
stop_service() {
|
||||||
[ -f "$CONFIGFILE" ] && rm -f "$CONFIGFILE"
|
[ -f "$CONFIGFILE" ] || return
|
||||||
|
rm -f "$CONFIGFILE"
|
||||||
procd_set_config_changed firewall
|
procd_set_config_changed firewall
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -353,5 +354,6 @@ service_triggers(){
|
||||||
}
|
}
|
||||||
|
|
||||||
service_started() {
|
service_started() {
|
||||||
|
[ "$snmp_enabled" -eq 0 ] && return
|
||||||
procd_set_config_changed firewall
|
procd_set_config_changed firewall
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue