Re: running POE as a windows service
PerlSvc works fine with POE. I have several apps that use it. Not sure about the cross compiling. At work we have both Win32 and Linux application, but we build natively on each platform. -Andrew Andrew O'Brien wrote: Hi Andreas, I was trying to find a solution how to run POE applications as a Windows service. I've found two solutions so far, but I am not quite satisfied with them. If you're using Activestate perl (from your mention of ppms) then I would suggest having a look at the perl dev kit, particularly the perlsvc component. I have no idea how well it interacts with POE but I've used it successfully on a number of other non-POE projects in the past. PerlApp is also a handy component for deploying standalone apps. I believe the latest versions also support cross-compiling exes from linux hosts as well. We're a linux shop so that is attractive to us but its probably not useful for the majority :-) Cheers, Andrew
Re: running POE as a windows service
2009/9/29 Andreas Altergott alterg...@mira-consulting.net Hi, I was trying to find a solution how to run POE applications as a Windows service. I've found two solutions so far, but I am not quite satisfied with them. I'm also writing a Win32 service with POE for a few months now. You may have seen my recent posts on PerlMonks.org. o Using Win32::Daemon with POE::Component::Daemon::Win32 This would be perfect, but Win32::Daemon is not available as a PPM for Perl 5.10. POE::Component::Daemon::Win32 is not available as a PPM at all. Win32::Daemon for Perl 5.10 is still beta and it seems this project is stalled. There's no source available to further develop this, is there? http://www.roth.net/forums/topic.php?id=206 It is worse: I tried to contact Dave Roth get access to the missing source and to takeover the maintainership, but he doesn't responds to e-mail and I've seen no news from his on the net since 2008. I've managed to build a PPM from the latest binary available (20080324) and was hoping to build my application on it, even with the risk of not having the source in case of bug. However I discovered last week a major Win32::Daemon bug for my application: an incompatibility with the fork() implementation. See https://rt.cpan.org/Ticket/Display.html?id=50020 Since yesterday I'm trying to workaround this bug by isolating the service management part in a separate process that launch my main service code using Win32::Job. My prototype of this service wrapper is working but I've now to implement IPC to send events from the wrapper to my POE session in the wrapped process. I'll post my questions about this in a separate thread. o Using instsrv and srvany from Windows. This tools do not interact with POE. They simply kill the service without giving it a chance to stop. That's why I'm not using it. Olivier.
running POE as a windows service
Hi, I was trying to find a solution how to run POE applications as a Windows service. I've found two solutions so far, but I am not quite satisfied with them. o Using Win32::Daemon with POE::Component::Daemon::Win32 This would be perfect, but Win32::Daemon is not available as a PPM for Perl 5.10. POE::Component::Daemon::Win32 is not available as a PPM at all. Win32::Daemon for Perl 5.10 is still beta and it seems this project is stalled. There's no source available to further develop this, is there? http://www.roth.net/forums/topic.php?id=206 o Using instsrv and srvany from Windows. This tools do not interact with POE. They simply kill the service without giving it a chance to stop. Are there any other solutions to run POE as a service? Probably I should still stick to Perl 5.8 and Win32::Daemon? Thanks, Andreas signature.asc Description: OpenPGP digital signature
RE: running POE as a windows service
Hi Andreas, I was trying to find a solution how to run POE applications as a Windows service. I've found two solutions so far, but I am not quite satisfied with them. If you're using Activestate perl (from your mention of ppms) then I would suggest having a look at the perl dev kit, particularly the perlsvc component. I have no idea how well it interacts with POE but I've used it successfully on a number of other non-POE projects in the past. PerlApp is also a handy component for deploying standalone apps. I believe the latest versions also support cross-compiling exes from linux hosts as well. We're a linux shop so that is attractive to us but its probably not useful for the majority :-) Cheers, Andrew