On Mon, Mar 18, 2013 at 06:46:35PM -0400, Paul Alfille wrote:
Thanks for comments!
> >
> > Any other things I should have in mind packaging owfs?
> >
> The one difficulty is knowing what bus-master to use. You can start owfs
> based on seeing the USB bus-master. A serial adapter (or serial->usb)
> bus-master can't be safely figured out on its own. i2c can safely scan for
> bus-masters.
That's an interesting option. I don't have any USB-1wire interfaces, though.
But I will try to implement this kind of hardware-activation.
> > 3) systemd provides facility for socket-activation; it's a mechanism
> > comparable
> > to beefed up xinetd. I'd like to patch owserver to have its socket
> > managed
> > by systemd. This would make few things possible:
> > - removing explicit requirements for owserver from owhttpd and
> > similar units
> > - would allow owserver to be restarted without need to restart all
> > frontend
> > daemons.
> >
> > Any patches are welcome. I would like to avoid the difficulties of dynamic
> library linking that plagues the Avahi code. Would the socket interface
> break other platforms?
Socket interface is very simple and do not require additional libraries.
The (pseudo)code looks like this:
if (getenv("LISTEN_FDS")) {
/* socket is managed by systemd and we receive fd */
} else {
/* manually establish socket as usual */
}
See for example
https://github.com/oetiker/rrdtool-1.x/commit/ef726c14d1603b06e1cf740c86047a5edd32b070
or
http://dev.kryo.se/iodine/attachment/ticket/106/patch
--
Tomasz Torcz Only gods can safely risk perfection,
xmpp: [email protected] it's a dangerous thing for a man. -- Alia
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers