mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
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:
parent
1f817c4e8f
commit
b4ce04d317
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue