Jump to content

problem starting service # 1053


Recommended Posts

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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 check

memory 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. This

installs the CHECKMEM service running under srvany.

3. Edit the CHECKMEM service via control panel and select "allow

interactivity with desktop". Service should run under the local system

account.

4. Modify the registry using REGEDIT32 by either

navigating to

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CHECKMEM.

Under CHECKMEM create a key called "Parameters".

Under Parameters create a string value called "Application" with the

value cmd.exe /c tclsh D:\scripts\Tcl\notify\checkMem.tcl.

Save changes.

OR

create 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 a

service. Test it from the command line. E.G tclsh

D:\\scripts\\TCL\\notify\\checkMem.tcl.

The CheckMem source is located at:

http://aspn.activestate.com/ASPN/Cookbook/Tcl?kwd=Windows

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy