Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Turn a perl script into a Win32 Service

by tokpela (Chaplain)
on Oct 10, 2008 at 08:59 UTC ( #716395=note: print w/replies, xml ) Need Help??

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:
  • 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 10, 2008 at 13:35 UTC
    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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://716395]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2017-11-22 05:59 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (315 votes). Check out past polls.