Windows Services for Waitress: NSSM alternatives?
Howdy everyone!
Deploying on Windows (non-negotiable) - there is no IIS but instead, Caddy as a reverse proxy in front of Waitress as the server.
How best to create this a as a service in Windows so it will be able to automatically restart?
I've googled and found NSSM, but to the best of my additional googling - it looks like it's no longer maintained and is not the best way to go about that.
What other options exist for something like this?
Caddy was setup as a service simply by using the built-in sc.exe.
I created a 'serve.py' (which serves the wsgi application via waitress) - from the command line it works great. When I add it as a service via sc.exe, it times out (because a Python script won't return the signal it's ready to the Windows Service Control Manager).
I realize this is a pretty niche thing - but has anyone else done this? What are you using?