Windows - Services
http://nssm.cc/
http://stackoverflow.com/questions/3582108/create-windows-service-from-executable
https://support.microsoft.com/en-us/kb/137890
https://support.microsoft.com/en-us/kb/251192
http://www.howtogeek.com/50786/using-srvstart-to-run-any-application-as-a-windows-service/
https://support.asperasoft.com/entries/20150642-Manually-creating-a-service-in-Windows - done reading
How can we display a list of running services from the command prompt?
net start
sc query
How can we stop a service from the command prompt?
net stop "Windows Time"
sc stop "Windows Time"
How can we start a service?
net start "Windows Time"
sc start "Windows Time"
How can we kill a service that are stuck in starting / stopping?
sc queryex "wlsvc qdomain_myserver"
taskkill /f /pid [PID]
How can we manually create a service?
sc create service_name binpath=C:\path\to\binary [option1] [option2] [optionN]
sc create service_name binPath="C:\Aspera\bin\asperacentral.exe" DisplayName="Aspera Central" start=auto
- download and unzip http://nssm.cc/release/nssm-2.24.zip
- from command line type: nssm.exe install [servicename]
page revision: 7, last edited: 28 Sep 2018 22:10