Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Turn a perl script into a Win32 Service

by tokpela (Chaplain)
on Oct 10, 2008 at 08:59 UTC ( [id://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

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-03-19 08:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found