Add reload command to the telegraf rc-script

PR:		221021
Submitted by:	Dmitry Luhtionov
This commit is contained in:
Palle Girgensohn 2018-02-05 15:05:36 +00:00
parent 6906ce1598
commit 875bbd03b4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=460975
2 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= telegraf
DISTVERSION= 1.5.1
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= net-mgmt
MAINTAINER= girgen@FreeBSD.org

View File

@ -32,6 +32,7 @@ start_precmd=telegraf_prestart
pidfile="/var/run/${name}.pid"
command=/usr/sbin/daemon
command_args="-crP ${pidfile} %%PREFIX%%/bin/${name} ${telegraf_flags} -config=${telegraf_conf} >> /var/log/telegraf.log 2>&1"
extra_commands="reload"
telegraf_prestart() {
# Have to empty rc_flags so they don't get passed to daemon(8)