http://www.perlmonks.org?node_id=716395


in reply to Turn a perl script into a Win32 Service

>> Does anyone know of an alternative to Win32::Daemon for
>> making a program run as a service?

I have used the PerlSvc program in the ActiveState PDK to develop a Windows Service and found it very straight-forward.

>> Does anyone know of a "how to" guide to turn an
>> completed program into a service after the fact?

There is also a full chapter about developing a Windows service in David Roth's book (although this is definitely old):

Win32 Perl Scripting: The Administrator's Handbook

Finally, there is an example Windows service script from the Roth Consulting script repository:

http://www.roth.net/perl/scripts/scripts.asp?DirMon.pl

Replies are listed 'Best First'.
Re^2: Turn a perl script into a Win32 Service
by Limbic~Region (Chancellor) on Oct 10, 2008 at 13:35 UTC
    tokpela,
    Thanks for letting me know about PerlSvc. I think I will end up using that or M$'s tool rather than try and integrate the code.

    Regarding the "how to" guide advice, that wasn't quite what I was looking for. I was already familiar with the documentation about creating a service but that's not what I was after. I have already created a finished application and want advice on converting it. That's a lot different than starting with a blank slate.

    It is probably good that you provided links here though as it will likely help someone who stumbles on to this thread in the future.

    Cheers - L~R