Open TLeonardUK opened 2 years ago
I put together a working sample of this on my fork: https://github.com/FracturedShader/ds3os/tree/feature/run-as-service
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:
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