diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-03-27 22:40:05 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-03-27 22:40:05 +0100 |
commit | 8c364c784966be1700ea39ae45028f3e9be9cae0 (patch) | |
tree | c1971211069b79e3831b71accd52a67a9fdc77a3 /net-analyzer/telegraf/files/telegraf.rc | |
parent | 6bd95d1f6320b8666a31ec949183aaa3088aa16f (diff) |
gentoo resync : 27.03.2018
Diffstat (limited to 'net-analyzer/telegraf/files/telegraf.rc')
-rw-r--r-- | net-analyzer/telegraf/files/telegraf.rc | 18 |
1 files changed, 18 insertions, 0 deletions
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 $? +} |