Add ability to define a custom service name when installing as a Windows service (#4753)

This commit is contained in:
Lee Jaeyong
2018-09-28 10:41:24 +09:00
committed by Daniel Nelson
parent 008ee617cb
commit 6b7d64f1d6
3 changed files with 16 additions and 1 deletions

View File

@@ -33,6 +33,7 @@ The commands & flags are:
--console run as console application (windows only)
--service <service> operate on the service (windows only)
--service-name service name (windows only)
Examples:
@@ -59,4 +60,7 @@ Examples:
# install telegraf service
telegraf --service install --config "C:\Program Files\Telegraf\telegraf.conf"
# install telegraf service with custom name
telegraf --service install --service-name=my-telegraf
`