Add reload command to the telegraf rc-script
PR: 221021 Submitted by: Dmitry Luhtionov
This commit is contained in:
parent
6906ce1598
commit
875bbd03b4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=460975
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= telegraf
|
||||
DISTVERSION= 1.5.1
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= net-mgmt
|
||||
|
||||
MAINTAINER= girgen@FreeBSD.org
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user