net-snmp: rename stop_service to service_stopped
authorFlorian Eckert <fe@dev.tdt.de>
Wed, 19 Oct 2022 08:40:18 +0000 (10:40 +0200)
committerStijn Tintel <stijn@linux-ipv6.be>
Thu, 30 Mar 2023 07:23:41 +0000 (10:23 +0300)
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>
net/net-snmp/files/snmpd.init

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