map-controller: fix enabling via uci

The service must be started but without any instance in case it is
disabled via uci. If it is stopped entirely, the reload trigger does
not work and it is impossible to re-enable mapcontroller via uci
without explicit reload.
This commit is contained in:
Erik Karlsson 2021-09-23 22:51:06 +02:00 committed by Jakob Olsson
parent 1f817c4e8f
commit b4ce04d317

View file

@ -48,6 +48,8 @@ reload_service() {
config_get_bool enabled controller enabled 1
if [ "$enabled" -eq 0 ]; then
stop
# Start but without instance so reload trigger works.
start
return
fi