Last active
August 24, 2020 07:02
-
-
Save corespider/b5623fe131c8ff4c41ad67ad0df95a61 to your computer and use it in GitHub Desktop.
Worker Service in .NET Core
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 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