From 875bbd03b49bc318611e4d91944692b877e96e06 Mon Sep 17 00:00:00 2001 From: Palle Girgensohn Date: Mon, 5 Feb 2018 15:05:36 +0000 Subject: [PATCH] Add reload command to the telegraf rc-script PR: 221021 Submitted by: Dmitry Luhtionov --- net-mgmt/telegraf/Makefile | 2 +- net-mgmt/telegraf/files/telegraf.in | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/net-mgmt/telegraf/Makefile b/net-mgmt/telegraf/Makefile index 838551792058..17781b6861fe 100644 --- a/net-mgmt/telegraf/Makefile +++ b/net-mgmt/telegraf/Makefile @@ -3,7 +3,7 @@ PORTNAME= telegraf DISTVERSION= 1.5.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net-mgmt MAINTAINER= girgen@FreeBSD.org diff --git a/net-mgmt/telegraf/files/telegraf.in b/net-mgmt/telegraf/files/telegraf.in index c54dcbf6ac2b..897b6a969561 100644 --- a/net-mgmt/telegraf/files/telegraf.in +++ b/net-mgmt/telegraf/files/telegraf.in @@ -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)