You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by rscales2929 February 1, 2022
Hi, are there any plans to implement ServiceMain in Server.exe, allowing it to run as a Windows service? I'm not a professional C++ dev, but it seems like it would fit right into Entry.cpp.
Right now you can get a t2.micro Amazon AWS EC2 Windows Server 2019 instance for free, meaning those inclined to put in the leg work can set up a hosted DS3 Open Server. They can keep it running for 750 hours/month at no cost. To me, this is infinitely preferable to opening my personal computer to the Internet.
I used NSSM to create a wrapper for Server.exe on my EC2 instance, but being able to run DS3OS directly as a service would be preferable. (Btw, happy to share my AMI for those interested in spinning up their own instances.)
The text was updated successfully, but these errors were encountered:
There are a few TODOs left before it is fully ready, but the main goal was to preserve all current functionality precisely as it is while enabling the ability to register the server as a service. This way it can be run directly (how it currently works), or as a service without any special configurations on the part of the user.
Remaining TODOs:
Proper reporting to the Windows Event Log requires very custom message file compilation that also must be linked in the Registry to work
The service must run as the same user as the Steam client for the Steam APIs to work. This could be setup dependent
If the approach so far seems reasonable it should be possible to handle these remaining items in a fairly straightforward way so long as we assume anyone doing this is comfortable with manipulating Windows Services.
Discussed in https://github.com/TLeonardUK/ds3os/discussions/72
Originally posted by rscales2929 February 1, 2022
Hi, are there any plans to implement ServiceMain in Server.exe, allowing it to run as a Windows service? I'm not a professional C++ dev, but it seems like it would fit right into Entry.cpp.
Right now you can get a t2.micro Amazon AWS EC2 Windows Server 2019 instance for free, meaning those inclined to put in the leg work can set up a hosted DS3 Open Server. They can keep it running for 750 hours/month at no cost. To me, this is infinitely preferable to opening my personal computer to the Internet.
I used NSSM to create a wrapper for Server.exe on my EC2 instance, but being able to run DS3OS directly as a service would be preferable. (Btw, happy to share my AMI for those interested in spinning up their own instances.)
The text was updated successfully, but these errors were encountered: