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
1 changed files with 1 additions and 1 deletions

View 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