Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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:

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


Comment on Re: Turn a perl script into a Win32 Service
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://716395]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-09-23 08:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (212 votes), past polls