clkanski Posted January 22, 2005 Report Share Posted January 22, 2005 I am having problems running a "homemade" service. I keep getting: Error # 1053 The service did not respond to the start or control request in a timely fashion.The service points to a .bat file which in turn points to a tcl script. I've installed the service a couple of ways, once by a C++ program, and once using the tcl api extensions (really cool.... twapi.sourceforge.net). I must be missing something. I am using tcl 8.4, and WinXP Pro. Can anyone help? What does this error mean? What is a "timely fashion"?Thanks,clkanski Quote Link to comment Share on other sites More sharing options...
-pops- Posted January 22, 2005 Report Share Posted January 22, 2005 This error code is referred in MS knowledgebase a lot of times and can relate to a number of things. Have a look here to match up your specific detail http://search.microsoft.com/search/results...s&qu=error+1053 Quote Link to comment Share on other sites More sharing options...
clkanski Posted January 22, 2005 Author Report Share Posted January 22, 2005 Yah, I've read some of those. They handle the case where the service takes too long to start. This message is occuring immediately after I hit the start button. I've even tried installing the service with a third party application, FireDaemon, and it starts just fine. But, once I get this working on my own, I want to deploy it to a pool of 30 computers or so. I don't want to buy 30 copies of the utility, for functionality I should be able to achieve on my own! Quote Link to comment Share on other sites More sharing options...
clkanski Posted January 25, 2005 Author Report Share Posted January 25, 2005 I was told about a generic service that comes with the NT Resource Kit. It allows you to run any program or script as a service. Here is an example that PatrickF posted on another site. This runs a tcl script as a service:I run serveral tcl scripts as services. For example to run the checkmemory tcl script in the backround as a service:1. Copy srvany.exe from the NT resource kit to c:\winnt\system32.2. execute instsrv CHECKMEM c:\winnt\system32\srvany.exe. Thisinstalls the CHECKMEM service running under srvany.3. Edit the CHECKMEM service via control panel and select "allowinteractivity with desktop". Service should run under the local systemaccount.4. Modify the registry using REGEDIT32 by eithernavigating toHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CHECKMEM.Under CHECKMEM create a key called "Parameters".Under Parameters create a string value called "Application" with thevalue cmd.exe /c tclsh D:\scripts\Tcl\notify\checkMem.tcl.Save changes.ORcreate a file with the following entry and import into the registry.Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CHECKMEM\Parameters]"Application"="cmd /c tclsh D:\\scripts\\TCL\\notify\\checkMem.tcl"NB: Ensure your script works without errors before you create it as aservice. Test it from the command line. E.G tclshD:\\scripts\\TCL\\notify\\checkMem.tcl.The CheckMem source is located at:http://aspn.activestate.com/ASPN/Cookbook/Tcl?kwd=Windows Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.