Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run newt.exe as Windows Service #27

Open
LukasSt46 opened this issue Apr 3, 2025 · 3 comments
Open

Run newt.exe as Windows Service #27

LukasSt46 opened this issue Apr 3, 2025 · 3 comments

Comments

@LukasSt46
Copy link

Hi, is it possible, to run newt.exe including all parameters, as a Windows Service?

@oschwartz10612
Copy link
Member

You should be able to but you'll have to create it manually! Take a look at the following link: https://stackoverflow.com/questions/3582108/create-windows-service-from-executable

@LukasSt46
Copy link
Author

Yes, I tried that. Unfortunately, the service doesn't start. It stays in the "Starting" state and then terminates after 60 seconds. The service would work during those 60 seconds. It seems as if the EXE file isn't transmitting the "started" status to Windows.

@oschwartz10612
Copy link
Member

Instead of manually creating the service, have you considered using a tool like nssm (Non-Sucking Service Manager)? It simplifies creating Windows services from executables. It might handle the 'started' status issue automatically. You can find it here: https://nssm.cc/

If you still encounter problems with nssm, please provide the command you used and any error messages. Unfortunately I am not a Windows expert and have not created services before but if we figure this out we could add it to the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants