All,
I have developed a Win32 application that doesn't require any human interaction. Initially, I wanted to find a way to "background" this application so that a logged in user wouldn't accidently interfere with the process but then I realized I needed more than just making it invisible.
I want the process to start automatically when the machine restarts. I want an administrator to be able to start, stop, and disable it while it is invisible. In essense, I want a windows service. I had hoped Win32::Service did more than allow you to manage existing services but apparently not. I then looked at Win32::Daemon. Unfortunately, the CPAN module was last updated in 2001. Fortunately, this is one of the Dave Roth modules so I looked there for an updated version - apparently the 5.10.x version is in beta and requires manual installation.
- Does anyone know of an alternative to Win32::Daemon for making a program run as a service?
- Does anyone know of a "how to" guide to turn an completed program into a service after the fact?
Cross posted at Win32::Daemon forum
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.