in reply to Turn a perl script into a Win32 Service

This question has been asked before: How to install my Perl script as a Window service?

Apparently, there's an entry in ActiveState's WinFAQ: What is a Windows NT/200x/XP service?

But maybe, most useful may prove to be this script: Install a perl script as a Win NT/2000/XP service.

p.s. I can run "mmc" from the "Run..." prompt in the XP start menu, as per that FAQ, but after that, I'm lost.

  • Comment on Re: Turn a perl script into a Win32 Service

Replies are listed 'Best First'.
Re^2: Turn a perl script into a Win32 Service
by Limbic~Region (Chancellor) on Oct 14, 2008 at 15:15 UTC
    bart,
    As I have explained, I already figured out how to get the application to start as a service using SrvAny despite the problems with Vista that no resource in this thread so far has addressed (which is why I added the response). Unfortunately, it still doesn't work.

    In a nutshell, there appear to be 3 options:

    • Microsoft's SrvAny (free but broken)
    • ActiveState's PerlSvc (expensive and uknown if it works with 5.10 and Vista)
    • Roth's Win32::Daemon (free but with drawbacks)
    Those drawbacks being that it is in beta for 5.10 (converted to XS). I don't know for sure that it will work on Vista and it doesn't seem straight forward to convert an existing application.

    The last drawback is really a personal one. I am sure it wouldn't take me "too long" to shoe horn it in but I would really like a turn key solution.

    Cheers - L~R