[OpenWrt-Devel] [PATCH] procd: service gets deleted when its last instance is freed

Alin Năstac alin.nastac at gmail.com
Fri Feb 24 05:21:12 EST 2017


Hi John,

On Fri, Feb 24, 2017 at 10:53 AM, John Crispin <john at phrozen.org> wrote:
> can you write a little more info as to why this is needed and what
> scenario this fixes/changes ?

1) root at OpenWrt:~# uci show system.ntp
system.ntp=timeserver
system.ntp.enable_server='0'
system.ntp.use_dhcp='1'
system.ntp.dhcp_interface='wan'
2) root at OpenWrt:~# uci show network.wan
network.wan=interface
network.wan.proto='dhcp'
network.wan.ifname='eth4'
network.wan.reqopts='1 3 6 15 33 42 51 121 249'
3) restart wan interface using ifup command
4) sysntpd service will be down afterwards although dhcp lease has an option 42

Because service is deleted when last instance gets freed, its triggers
will also released. Without these triggers in place, sysntpd will not
be reloaded when a new dhcp lease containing option 42 will be
received.
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list