<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr">Generally you would just the Avahi API to advertise your service instead of dynamically updating the “static” service files (which is what they are generally designed for - unchanging manual services). </div><div dir="ltr"><br></div><div dir="ltr">Is there something that prevents you from doing that? Or a reason you haven’t before now?</div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">You could also as a “hack” just launch an instance of the avahi-publish-service CLI tool.</div><div dir="ltr"><br></div><div dir="ltr">Trent</div><div dir="ltr"><br><blockquote type="cite">On 3 Apr 2020, at 3:46 pm, Russell Senior <russell@personaltelco.net> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><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>
<span>_______________________________________________</span><br><span>avahi mailing list</span><br><span>avahi@lists.freedesktop.org</span><br><span>https://lists.freedesktop.org/mailman/listinfo/avahi</span><br></div></blockquote></body></html>