[PATCH v2 1/2] uhttpd: Reload config after uhttpd-mod-ubus was added

Rafał Miłecki zajec5 at gmail.com
Thu Jan 6 22:33:08 PST 2022


On 6.01.2022 22:50, Rafał Miłecki wrote:
> Hi Hauke,
> 
> On 20.03.2021 20:57, Hauke Mehrtens wrote:
>> Without this change the config is only committed, but the uhttpd daemon
>> is not reloaded. This reload is needed to apply the config. Without the
>> reload of uhttpd, the ubus server is not available over http and returns
>> a Error 404.
>>
>> This caused problems when installing luci on the snapshots and
>> accessing it without reloading uhttpd.
>>
>> Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
> 
> this looks wrong to me. Calling init.d scripts from uci-defaults script
> may result (and it results here) in starting uhttpd too early. We need
> all uci-defaults script to do their updates before we call any init.d.
> 
> I hit this incorrect behaviour as I have my own uci-defaults script
> switching uhttpd from port 80 to another one.
> 
> If you need some changes applied after *installing* a package perhaps
> postinst should be used?

Hint:
rpcd: reload rpcd on installation of rpcd-mod-*
https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=32ba52e2174d0c12fa476c3295daca12a864e547



More information about the openwrt-devel mailing list