From 9b67f7d1340abe08e6a0c2c80fb32572577a1441 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Wed, 19 Oct 2022 10:40:18 +0200 Subject: [PATCH] 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 --- net/net-snmp/files/snmpd.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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