summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/root/etc/init.d
AgeCommit message (Collapse)Author
2024-04-29luci-base: always add ucitrack independently of uci configFlorian Eckert
It is possible that the uci configuration file will be added to the system later. Therefore, ucitrack json definitions are always added to ucitrack triggers and it is not checked whether the uci configuration file exists. Reported-by: Chen Minqiang <ptpt52@gmail.com> Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-04-11luci-base: use json for ucitrack instead of uciFlorian Eckert
The 'ucitrack' configuration under '/etc/config' defines which service must be restarted on a LuCI change. This uci file defines how all this works together. Additionally there are 'uci-defaults' scripts in the various applications that add additional configurations parameters to this ucitrack file if a service must be reloaded/restarted on a LuCI change. There are some problems with the current implementation: * The uci should be used to configure the system and not for this kind of reload/restart dependency handling on LuCI changes. * On a system update with configuration restore of the 'ucitrack' file the new behavior on LuCI reload/restart could not take into account because the new file is *not* used. This commit converts the handling from uci to json. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-03-30luci-base: ucitrack: fix broken affects logicJo-Philipp Wich
Changes on a given configuration should trigger change events on affected configurations, not the other way around. Fixes: #5745 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-23ucitrack: fix bug for exec with paramsjjm2473
In file `/etc/config/ucitrack` ``` config fstab option exec '/sbin/block mount' ``` `/sbin/block mount` never be called after fstab changed. Signed-off-by: jjm2473 <1129525450@qq.com>
2018-05-05luci-base: add transitional /etc/init.d/ucitrackJo-Philipp Wich
Ship an /etc/init.d/ucitrack for spawning a virtual service with the sole purpose to track the configurations and dependencies formerly handled by luci-reload. Once all LuCI supported services ship with procd compatible init scripts, the uci track support can be dropped. Signed-off-by: Jo-Philipp Wich <jo@mein.io>