Perl Monk, Perl Meditation | |
PerlMonks |
Running dbiproxy as a service on Windowsby RandomMonkey (Initiate) |
on Jul 01, 2010 at 23:52 UTC ( [id://847650]=perlquestion: print w/replies, xml ) | Need Help?? |
RandomMonkey has asked for the wisdom of the Perl Monks concerning the following question: I have been trying to get dbiproxy to run as a service on one of our PC's so we can access Windows resources from Unix. I have had no problem getting it to run and work great, if I run it manually from a shell. I want to run it as a service so it will come up when we reboot and so it doesn't block the PC by consuming the login. I have spent a lot of time getting it to run as a service. I eventually have been successful running it as a service using Windows srvany.exe (Windows doc) and some registry updates on Windows XP SP3. I am pretty sure it is actually running because I see my port listening when running netstat -a and the fact that it appears to be an error message from dbiproxy (see code section below). For some reason, on the dbiproxy box, if I run dbiproxy from a shell and leave it running, it works great. But when run as a service I get this message (starred specifics in message).
I can run both the service and the command line on two different ports at the same time. The one from the command line has no problems, but my service gives this error. I run the exact same client code with the exception of the port number. One co-worker suggested that maybe my service was running as SYSTEM. I reconfigured the service to run as my userid (and separately as a application user id we use internally here), but I get the same error. Is there something else in the "Windows service sandbox" that I don't understand and is causing this error? Any ideas how to approach solving this problem? Is there any better way to try doing what I am trying to do? Here is the content of the *.bat file I created to start dbiproxy from the command line and from srvany (with varying ports for testing) C:\cygwin\bin\perl C:\cygwin\usr\local\bin\dbiproxy --localport 36503 --logfile C:\cygwin\home\*******\dbiproxy.log --mode fork --debugBTW, I did search google and monks for this same error. No solid leads from google. Found literally this exact problem asked here with no answers in 2005. Starting dbiproxy as a Win32 Service
Back to
Seekers of Perl Wisdom
|
|