Start UE5 server as a windows service

Hi all!

There was a need for the deployment of the UE server (v5.1.1) to start it as a windows service.

An attempt to package it through the regular Windows service tool (“sc create...”) resulted in the process being started (it can be observed in the task manager), however, the service launch is not successful and crashes with “error 1053 the service did not respond to the start or control request in a timely fashion”.

I must say right away that increasing the timeout in the register does not help.

The second point, packaging through the nssm utility is successful. However, nssm replaces the exe file in the service with its own, and this is undesirable for us.

Who has experience in creating a service for the UE server? What can be the reason for the unsuccessful launch after using sc, and how can we fix it?

Any information would be appreciated.