My code relies on aliases and so I wanted to copy the correct version of 
owfs.conf to /etc/owfs.conf and I assumed that I would need to restart 
after that for it to be read and the correct alias file used.

The thing I don't understand is that it is not the restart that causes 
the failure, it is the copy.  I have tried it without the restart line 
and it still fails.  Does owserver continually read /etc/owfs.conf and 
detect that it being written?

Regards
Mick

On 03/09/16 00:10, Jan Kandziora wrote:
> Am 02.09.2016 um 22:48 schrieb Mick Sulley:
>> If I have removed the restart it still fails, however if I introduce a
>> delay it works
>>
>> cp owfs.conf /etc/
>> sleep 5
>> ./control.py >> logfile
>>
>> Less than 5 seconds it fails, 5 or more it works
>>
> That is because owserver takes a while before it has it's socket listening.
>
> Why do you restart owserver at all? It's not neccessary. It's designed
> as a daemon to connect to the hardware at system boot and sit there and
> wait until other programs connects to it.
>
> Kind regards
>
>       Jan
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Owfs-developers mailing list
> Owfs-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers


------------------------------------------------------------------------------
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to