diff options
author | William Hubbs <williamh@gentoo.org> | 2018-03-25 17:58:09 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2018-03-25 17:58:09 -0500 |
commit | f1f922354336815d8a24cad6764ab7ba6717d230 (patch) | |
tree | fee5dc322cd9b0e3918dbe6894607dc7bebca38a /net-analyzer/telegraf/files | |
parent | x11-proto/damageproto: x86 stable (bug #651286) (diff) | |
download | gentoo-f1f922354336815d8a24cad6764ab7ba6717d230.tar.gz gentoo-f1f922354336815d8a24cad6764ab7ba6717d230.tar.bz2 gentoo-f1f922354336815d8a24cad6764ab7ba6717d230.zip |
net-analyzer/telegraf: new package
This is a plugin-driven server agent for collecting and reporting
metrics.
I would like to thank Robert Dyer for his work on this package.
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'net-analyzer/telegraf/files')
-rw-r--r-- | net-analyzer/telegraf/files/telegraf.confd | 2 | ||||
-rw-r--r-- | net-analyzer/telegraf/files/telegraf.rc | 18 |
2 files changed, 20 insertions, 0 deletions
diff --git a/net-analyzer/telegraf/files/telegraf.confd b/net-analyzer/telegraf/files/telegraf.confd new file mode 100644 index 000000000000..a643f8f3fd9a --- /dev/null +++ b/net-analyzer/telegraf/files/telegraf.confd @@ -0,0 +1,2 @@ +# Add any extra options to pass to telegraf to this setting. +#telegraf_opts="" diff --git a/net-analyzer/telegraf/files/telegraf.rc b/net-analyzer/telegraf/files/telegraf.rc new file mode 100644 index 000000000000..96e8a482f035 --- /dev/null +++ b/net-analyzer/telegraf/files/telegraf.rc @@ -0,0 +1,18 @@ +#!/sbin/openrc-run + +configdir="/etc/telegraf/telegraf.d" +configfile="/etc/telegraf/telegraf.conf" +error_log="${logfile:-/var/log/telegraf/telegraf.log}" +command=/usr/bin/telegraf +command_args="-config ${configfile} -config-directory ${configdir} + ${telegraf_opts}" +command_background=yes +command_user=telegraf:telegraf +make_pidfile=yes +pidfile=/var/run/telegraf.pid + +reload() { + ebegin "Reloading ${RC_SVCNAME}" + start-stop-daemon --signal HUP --pidfile "${PIDFILE}" + eend $? +} |