Skip to content

Instantly share code, notes, and snippets.

@PaulBradley
Last active April 11, 2018 16:49
Show Gist options
  • Save PaulBradley/a15a5affeabcaa695e39b798cfbf08d2 to your computer and use it in GitHub Desktop.
Save PaulBradley/a15a5affeabcaa695e39b798cfbf08d2 to your computer and use it in GitHub Desktop.
Install Go web application as a Windows Service - using the Non-Sucking Service Manager (https://nssm.cc) #golang
@echo off
nssm install toucan c:\toucan\toucan.exe
nssm set toucan Description "Toucan Extensions"
nssm set toucan Start SERVICE_AUTO_START
nssm start toucan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment