Re: event driven daemon

2017-01-02 Thread Chris Fedde
Sorry for the late reply. I was enjoying some non computer time between the holidays. Good to see that your project is making progress. It seems to me that you have chosen a reasonable implementation scheme. I'll be interested to hear how it works out. chris On Thu, Dec 22, 2016 at 9:44 AM,

Re: event driven daemon

2016-12-22 Thread Gary Stainburn
Just a quick update on my project. I am still reading up on AnyEvent, IO::Async, POE etc., and apart from making my brain hurt, I've come to the conclusion that these options are far more complicated than I want / need. I'm now leaning towards Chris' advice. The solution that I'm probably goin

Re: event driven daemon

2016-11-25 Thread Shlomi Fish
Hi Gary, On Wed, 23 Nov 2016 14:36:57 + Gary Stainburn wrote: > On Wednesday 23 November 2016 14:05:40 Shlomi Fish wrote: > > Aside from named pipes there are also unix-domain sockets and TCP sockets, > > both of which are more robust. > > The closest thing I've got to IPC is writing an x

Re: event driven daemon

2016-11-23 Thread Bruce Ferrell
I've used the POE module family to do event daemons On 11/23/2016 03:55 PM, Chris Fedde wrote: It might not be too bad an idea to just use processes rather than getting wrapped up in event loops and asynch IO. Forking is cheap and fast in linux. In my opinion it gets overlooked for many cases

Re: event driven daemon

2016-11-23 Thread Chris Fedde
It might not be too bad an idea to just use processes rather than getting wrapped up in event loops and asynch IO. Forking is cheap and fast in linux. In my opinion it gets overlooked for many cases where it is a perfectly acceptable approach. There are lots of approaches to work queues. The mai

Re: event driven daemon

2016-11-23 Thread Gary Stainburn
On Wednesday 23 November 2016 14:05:40 Shlomi Fish wrote: > Aside from named pipes there are also unix-domain sockets and TCP sockets, > both of which are more robust. The closest thing I've got to IPC is writing an xinetd service, which I then called from perl scripts using Net::Telnet. IPC is

Re: event driven daemon

2016-11-23 Thread Shlomi Fish
Hi Gary, On Tue, 22 Nov 2016 10:25:25 + Gary Stainburn wrote: > This is a request for opinions rather than an answer to a problem. > > I'm looking to write a daemon that can sit on my Domoticz (home automation) > server and can respond to Domoticz events and can receive commands to run >

event driven daemon

2016-11-22 Thread Gary Stainburn
This is a request for opinions rather than an answer to a problem. I'm looking to write a daemon that can sit on my Domoticz (home automation) server and can respond to Domoticz events and can receive commands to run tasks that would otherwise block the server. These will include things like 1