<div dir="ltr"><div>I have an application hosted on an OpenWrt version of avahi. In the land of OpenWrt, storage space is often on NOR flash, which is both scarce and limited in the number write cycles it can support. OpenWrt generally goes to considerable lengths to avoid often written files landing on flash, instead directing them to a tmpfs volatile filesystem.</div><div><br></div><div>In my application, the service changes the advertised port number of over restart, and so the service file is different on every restart. I have a local hack that modifies avahi's Makefile.am to change the location of the service directory to the tmpfs. This is discussed briefly (see also my patch there) in this OpenWrt github issue: <a href="https://github.com/openwrt/packages/issues/11733">https://github.com/openwrt/packages/issues/11733</a></div><div><br></div><div>I was encouraged to inquire here whether some suitable solution is acceptable in mainline avahi to allow runtime selection of servicedir so that we can use mainline avahi in OpenWrt without my hack.<br></div><div><br></div><div>Thanks!</div><div><br></div><div>-- <br></div><div>Russell Senior</div><div><a href="mailto:russell@personaltelco.net">russell@personaltelco.net</a><br></div></div>