dolmen has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks,
I have a POE-based program that I would like to turn into a Windows service.
POE::Component::Daemon::Win32 exists, however it is based on Win32::Daemon. And Win32::Daemon seems to be a dead-end as I'm facing the following problems:
I tried to use SrvAny (Microsoft tool from the Windows 2003 Server Resource Kit) but I've not yet been able to catch the service stop event to cleanly exit, saving the service state. No SIGINT, no SIGTERM, the process is simply killed.
Do you kown how to catch this?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SrvAny based Win32 service: how to catch termination?
by cdarke (Prior) on Sep 11, 2009 at 13:58 UTC | |
by dolmen (Beadle) on Sep 11, 2009 at 15:03 UTC |