Skip to content

Instantly share code, notes, and snippets.

@corespider
Last active August 24, 2020 07:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save corespider/b5623fe131c8ff4c41ad67ad0df95a61 to your computer and use it in GitHub Desktop.
Save corespider/b5623fe131c8ff4c41ad67ad0df95a61 to your computer and use it in GitHub Desktop.
Worker Service in .NET Core
:: Create a Windows Service
sc create WorkerService DisplayName="WorkerServiceDotNetCore" binPath="C:\full\path\to\WorkerServiceDotNetCore.exe"
:: Start a Windows Service
sc start WorkerService
:: Stop a Windows Service
sc stop WorkerService
:: Delete a Windows Service
sc delete WorkerService
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment