Skip to content

Instantly share code, notes, and snippets.

@innyso
Last active April 12, 2020 11:11
Show Gist options
  • Save innyso/4668f4d6844f1458dc1a75d8137cf4ca to your computer and use it in GitHub Desktop.
Save innyso/4668f4d6844f1458dc1a75d8137cf4ca to your computer and use it in GitHub Desktop.
#windows #service #error #1053

When running a windows service and you get the following:

StartService FAILED 1053:

The service did not respond to the start or control request in a timely fashion.

One of the reason might be because you cant just run any exe as a windows service. Your need to create an executable which able to communicarte with the Windows service control manager.

One option is to use the Microsoft developed adaptor Srvany. This adaptor is only available from Windows Server 2003 Resource Kits.

Another option is to wrap it with tools like TopShelf

The simplist option will be using another third party adaptor like nssm

Install nssm using choco choco install nssm -y

Run nssm install <service name> <parameter> to install the service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment