in reply to Help with start ActiveState PerlSvc service under WinXP

Okay, let’s go with the hypothesis that the service is, in fact, starting ... but that it cannot run in the environment that Windows is presenting to it.   So it wakes up, tries to take its first breath, finds that there is no air, chokes and dies.   (Ooh, hate it when that happens!)   Things to check include... who is the effective userID; what are the permissions; what is the current-directory; environment-variable settings such as PERL5LIB, and so on.   Yes, detective-work.   Good ol’ sleuthing.   No way around it, really.

Windows logs, including both application and system logs, would of course be a crucial thing to look at –as you well know – but in my experience the app has to “manage to take at least that first breath” before it leaves very much useful information in the logs.   As you have probably seen, it can die without leaving any useful traces.   “Which sucks, but ...”   :-/

In past lives, I have had to do some really ridiculous things just to get a handle on what is going on.   (And this not limited to Perl...)   Create a file, make it accessible to anyone and everyone, and try to launch a program whose first act is to try to “touch” that file or to write “Hello, world!” to it.   And you look to see if the modification time (or contents) of the file actually did change.   Just to get some clue as to whether the program successfully began running at all...   Usually once you do see the problem, fixing the problem is easy, but seeing the problem ... is hard.