Topic: Making a dependent service restart after change in LuCI
I'm trying to make a service (privoxy) restart when a user changes the Dnsmasq settings in LuCI.
I understand from previous posts and from reading the code that /etc/config/ucitrack is used to determine dependent services and what should be restarted. So I made the following changes:
config dhcp option init dnsmasq list affects privoxy config privoxy option init privoxy
I also made sure that /etc/init.d/privoxy existed, was executable, and the service was enabled (I see entries for privoxy in /etc/rc.d/). I also have /etc/config/privoxy with some minimal configuration inside.
This, as I understand it, should be all that is required to have dnsmasq and privoxy restart when a user changes DHCP settings in LuCI.
However, I see that dnsmasq restarts when pressing 'Save & Apply', but privoxy does not. I've added logger statements into the privoxy init script and see that it is not called. I also added logger statements into /sbin/luci-reload and see that it is only called with one argument: "dhcp". This suggests to me that it is not finding privoxy as a dependent service for some reason.
Any suggestions? I see there have been posts on this before, and I will write up a Wiki article on this to answer it definitively once this is solved.