1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-17 12:53:54 +02:00

net-snmp: rename stop_service to service_stopped

The commands in the function 'stop_service' do not stop the service.
Rather, they are commands that are to be executed when the service has
already been stopped. By renaming the function, the commands are now
executed after the service has been stopped.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert 2022-10-19 10:40:18 +02:00 committed by Stijn Tintel
parent d6edd837f5
commit 9b67f7d134

View File

@ -336,7 +336,7 @@ start_service() {
procd_close_instance procd_close_instance
} }
stop_service() { service_stopped() {
[ -f "$CONFIGFILE" ] || return [ -f "$CONFIGFILE" ] || return
rm -f "$CONFIGFILE" rm -f "$CONFIGFILE"
procd_set_config_changed firewall procd_set_config_changed firewall