From f5a8739b7c8c147dbfad458ab7c903199fd5b34c Mon Sep 17 00:00:00 2001 From: jseriff Date: Mon, 6 Jul 2015 11:07:06 -0500 Subject: [PATCH] update init.sh to use telegraf directories init.sh should use telegraf directories that are established in the package.sh as of 120218f --- scripts/init.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/init.sh b/scripts/init.sh index 3e5b239b0..b9339e407 100755 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -42,7 +42,7 @@ if [ ! -f "$STDOUT" ]; then fi if [ -z "$STDERR" ]; then - STDERR=/var/log/influxdb/telegraf.log + STDERR=/var/log/telegraf/telegraf.log fi if [ ! -f "$STDERR" ]; then mkdir -p `dirname $STDERR` @@ -92,10 +92,10 @@ function log_success_msg() { name=telegraf # Daemon name, where is the actual executable -daemon=/opt/influxdb/telegraf +daemon=/opt/telegraf/telegraf # pid file for the daemon -pidfile=/var/run/influxdb/telegraf.pid +pidfile=/var/run/telegraf/telegraf.pid piddir=`dirname $pidfile` if [ ! -d "$piddir" ]; then @@ -104,7 +104,7 @@ if [ ! -d "$piddir" ]; then fi # Configuration file -config=/etc/opt/influxdb/telegraf.conf +config=/etc/opt/telegraf/telegraf.conf # If the daemon is not there, then exit. [ -x $daemon ] || exit 5