aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorgirgen <girgen@FreeBSD.org>2018-02-05 23:05:36 +0800
committergirgen <girgen@FreeBSD.org>2018-02-05 23:05:36 +0800
commit682aedb3bd9654f8046f9c221f217664d030e27b (patch)
tree0330753c713942c3dce29c5bb870cc9d47d07e97 /net-mgmt
parentb8e5359d048a4d5506464367d465f73abfc1bc50 (diff)
downloadfreebsd-ports-gnome-682aedb3bd9654f8046f9c221f217664d030e27b.tar.gz
freebsd-ports-gnome-682aedb3bd9654f8046f9c221f217664d030e27b.tar.zst
freebsd-ports-gnome-682aedb3bd9654f8046f9c221f217664d030e27b.zip
Add reload command to the telegraf rc-script
PR: 221021 Submitted by: Dmitry Luhtionov
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/telegraf/Makefile2
-rw-r--r--net-mgmt/telegraf/files/telegraf.in1
2 files changed, 2 insertions, 1 deletions
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)