Skip to content

Instantly share code, notes, and snippets.

@NanoDano
Created August 3, 2020 03:48
Show Gist options
  • Save NanoDano/9839045585064fe67ad6294a78c7aa53 to your computer and use it in GitHub Desktop.
Save NanoDano/9839045585064fe67ad6294a78c7aa53 to your computer and use it in GitHub Desktop.
Create Windows Service with Non-Sucking Service Manager NSSM
REM http://nssm.cc
nssm.exe install "MyCustomService" "C:\Users\nanodano\venv\Scripts\python.exe" "C:\Users\nanodano\myscript.py"
nssm.exe start MyCustomService
nssm.exe stop MyCustomService
nssm.exe remove "MyCustomService"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment