Re: [Owfs-developers] patch: refactoring of src/man

2014-07-11 Thread Tomasz Torcz
Hi, I've tested you implementation. owserver is started by systemd when for example owget tries to connect - great! I'm sending three patches, first updates autotools machinery to use proper --prefix in units and copy the units during "make install". second adds unit for socket activation and

Re: [Owfs-developers] patch: refactoring of src/man

2014-06-29 Thread Paul Alfille
Tomasz, The systemd branch in owfs-code git is making progress. I've added the socket initiation, and the sd-notify. We stay in foreground more if systemd is the starting method, and ignore port assignments from the configuration file and command line. I do need to test and add more informative m

Re: [Owfs-developers] patch: refactoring of src/man

2014-06-17 Thread Tomasz Torcz
On Wed, Jun 11, 2014 at 07:04:28AM -0400, Paul Alfille wrote: > Ok, I started a branch called systemd with the two files sd-daemon.c and > sd-daemon.h included. > > A few things look a little strange -- systemd listen sockets are > automatically assigned as file descriptors number 3, 4, 5. I guess

Re: [Owfs-developers] patch: refactoring of src/man

2014-06-12 Thread Paul Alfille
You mention a couple of concepts: "persistence" and "caching" that I think are orthogonal to the systemd -- at least in owfs's view of them. 1. Caching is the storing of 1-wire slave readings (in owserver) for a short while to work around the relatively slow 1-wire bus speeds. It should always be

Re: [Owfs-developers] patch: refactoring of src/man

2014-06-12 Thread Vajk Fekete
Hi, How will this handle the persistent features? As I understand ownet does cache values for example. If the listener is handled externally and ownet is not running generally, would it have to use disk as persistence? Vajk On Thu, Jun 12, 2014 at 1:50 PM, Jan Kandziora wrote: > Am 12.06.2014

Re: [Owfs-developers] patch: refactoring of src/man

2014-06-12 Thread Jan Kandziora
Am 12.06.2014 12:38, schrieb Paul Alfille: > So can we have the situation where owserver waits for both > > 1. the USB device (say) to be available > 2. a request to come in > > and appear always available to the clients? > As systemd handles the socket connection (and process start) alone, I th

Re: [Owfs-developers] patch: refactoring of src/man

2014-06-12 Thread Paul Alfille
So can we have the situation where owserver waits for both 1. the USB device (say) to be available 2. a request to come in and appear always available to the clients? On Wed, Jun 11, 2014 at 7:59 AM, Jan Kandziora wrote: > Am 11.06.2014 13:04, schrieb Paul Alfille: > > > > Also, in the docume

Re: [Owfs-developers] patch: refactoring of src/man

2014-06-11 Thread Jan Kandziora
Am 11.06.2014 13:04, schrieb Paul Alfille: > > Also, in the documentation about systemd, there was a long passage about > how the daemonizing should be done external to the program -- is that still > the recommended policy? I guess the early testing could help there. > Yeah, that's one of the key

Re: [Owfs-developers] patch: refactoring of src/man

2014-06-11 Thread Paul Alfille
Ok, I started a branch called systemd with the two files sd-daemon.c and sd-daemon.h included. A few things look a little strange -- systemd listen sockets are automatically assigned as file descriptors number 3, 4, 5. I guess we'll have to test systemd very early to make sure no other file descri

Re: [Owfs-developers] patch: refactoring of src/man

2014-06-09 Thread Tomasz Torcz
On Thu, Jun 05, 2014 at 05:34:01PM -0400, Paul Alfille wrote: > Tomasz, > > I'm having trouble visualizing how the systemd triggering works. When a > program like owread tries to contact owserver, is owserver started? Is this > done by monitoring the typical owserver port (4304)? How about other >

Re: [Owfs-developers] patch: refactoring of src/man

2014-06-05 Thread Paul Alfille
Tomasz, I'm having trouble visualizing how the systemd triggering works. When a program like owread tries to contact owserver, is owserver started? Is this done by monitoring the typical owserver port (4304)? How about other owserver friends? If you don't mind describing the process more, or givi

Re: [Owfs-developers] patch: refactoring of src/man

2014-06-05 Thread Tomasz Torcz
On Thu, Jun 05, 2014 at 11:24:47AM -0700, Jerry Scharf wrote: > Tomasz, > > This would need to be an option rather than the default operation mode. > Not everyone can/will run owserver and friends from systemd. Systemd's socket activation design makes it very easy to gratefuly fallback into st

Re: [Owfs-developers] patch: refactoring of src/man

2014-06-05 Thread Jerry Scharf
Tomasz, This would need to be an option rather than the default operation mode. Not everyone can/will run owserver and friends from systemd. jerry On 06/05/2014 07:26 AM, Tomasz Torcz wrote: > On Tue, Jun 03, 2014 at 10:17:14PM -0400, Paul Alfille wrote: >> Tomasz, would you use dbus for system

Re: [Owfs-developers] patch: refactoring of src/man

2014-06-05 Thread Tomasz Torcz
On Tue, Jun 03, 2014 at 10:17:14PM -0400, Paul Alfille wrote: > Tomasz, would you use dbus for systemd? And would you send 1-wire data that > way or just program control. > > Looking at dbus, it certainly looks like 1-wire data could map to it > easily. I'm just not sure if it would be useful.

Re: [Owfs-developers] patch: refactoring of src/man

2014-06-04 Thread Stefano Miccoli
My intention is to use owserver only for debugging purposes (with fake or simulated devices). I have access only to a macbook and it makes not much sense to use it as a "real" server. My point is simply that owfs used to compile on Darwin, while now it is dead... so no intention to port it under

Re: [Owfs-developers] patch: refactoring of src/man

2014-06-04 Thread Jan Kandziora
Am 04.06.2014 04:17, schrieb Paul Alfille: > Tomasz, would you use dbus for systemd? And would you send 1-wire data that > way or just program control. > > Looking at dbus, it certainly looks like 1-wire data could map to it > easily. I'm just not sure if it would be useful. > IIRC, dbus is * fa

Re: [Owfs-developers] patch: refactoring of src/man

2014-06-03 Thread Paul Alfille
Tomasz, would you use dbus for systemd? And would you send 1-wire data that way or just program control. Looking at dbus, it certainly looks like 1-wire data could map to it easily. I'm just not sure if it would be useful. Paul On Tue, Jun 3, 2014 at 4:57 PM, Tomasz Torcz wrote: > On Mon, Jun

Re: [Owfs-developers] patch: refactoring of src/man

2014-06-03 Thread Tomasz Torcz
On Mon, Jun 02, 2014 at 09:27:05PM +0200, Stefano Miccoli wrote: > Dear all: > > I tried to compile owfs on recent Darwin (OS X Mavericks), hitting against a > number of problems, the biggest being how semaphores are implemented. > > I decided to tackle the problem starting from the simplest (tr

Re: [Owfs-developers] patch: refactoring of src/man

2014-06-03 Thread Paul Alfille
Your changes were applied, Stefano. Jan, I'd be happy to make any changes that ease package maintainer's work. On Tue, Jun 3, 2014 at 9:08 AM, Stefano Miccoli wrote: > No, I do not think: I addressed only problems on Darwin. > > BTW I tested my patch under the assumption that manpages are inst

Re: [Owfs-developers] patch: refactoring of src/man

2014-06-03 Thread Stefano Miccoli
No, I do not think: I addressed only problems on Darwin. BTW I tested my patch under the assumption that manpages are installed in a tree which is distinct from the system one: I do not know how package maintainers will address this layout. The idea is to keep upstream as simple as possible and

Re: [Owfs-developers] patch: refactoring of src/man

2014-06-03 Thread Jan Kandziora
Am 03.06.2014 09:02, schrieb Stefano Miccoli: > Do you mean installcheck? > > I was unaware of such a problem: both 'make check' and 'make > installcheck' do nothing in src/man, since no test suite is defined. > No, the "checkinstall" program which creates RPM and DEB packages just from a Makefil

Re: [Owfs-developers] patch: refactoring of src/man

2014-06-03 Thread Stefano Miccoli
Do you mean installcheck? I was unaware of such a problem: both 'make check' and 'make installcheck' do nothing in src/man, since no test suite is defined. S. On 02 Jun 2014, at 23:32, Jan Kandziora wrote: > Am 02.06.2014 21:27, schrieb Stefano Miccoli: >> >> This target (which I would call

Re: [Owfs-developers] patch: refactoring of src/man

2014-06-02 Thread Jan Kandziora
Am 02.06.2014 21:27, schrieb Stefano Miccoli: > > This target (which I would call rather call a "sed hell") tries to > cope with a simple problem: the manpages contain '.so file' requests > which cannot be resolved properly by the man system. > Thank you for addressing this. Does it also fixes th