From: Florian Eckert Date: Wed, 19 Oct 2022 08:40:18 +0000 (+0200) Subject: net-snmp: rename stop_service to service_stopped X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=9b67f7d1340abe08e6a0c2c80fb32572577a1441;p=openwrt-packages.git 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 --- diff --git a/net/net-snmp/files/snmpd.init b/net/net-snmp/files/snmpd.init index b0f93cdd4..daecb73c9 100644 --- a/net/net-snmp/files/snmpd.init +++ b/net/net-snmp/files/snmpd.init @@ -336,7 +336,7 @@ start_service() { procd_close_instance } -stop_service() { +service_stopped() { [ -f "$CONFIGFILE" ] || return rm -f "$CONFIGFILE" procd_set_config_changed firewall