Had a problem with #NSSM ("the Non-Sucking Service Manager") in which my service would get stuck in the Stopping state indefinitely, even though all non-nssm processes had exited.

Turns out NSSM hasn't been updated since 2017, so it's probably a dead project at this point.

Decided to yeet it and try #WinSW instead. Setup was clunky but it doesn't seem to have the hanging problem, so I guess that's that.

Ever needed to have a non-service #commandline #application to be run as a #windows #service? 🤕

🧣 „Shawl is a wrapper for running arbitrary programs as Windows services, written in #RustLang. It handles the Windows service API for you so that your program only needs to respond to ctrl-C/SIGINT.“ 👍

⌨ C:\>sc create "My Service" binPath= "C:/path/shawl.exe run -- C:/path/my-app-to-be-run-as-service.exe"

🔗 https://github.com/mtkennerly/shawl

#floss #mit #portable #tinyapps #alternativeto #nssm #winsw

GitHub - mtkennerly/shawl: Windows service wrapper for arbitrary commands

Windows service wrapper for arbitrary commands. Contribute to mtkennerly/shawl development by creating an account on GitHub.

GitHub