From 37beae5033ba42eb5a7537bf5144dbc1f71a66f8 Mon Sep 17 00:00:00 2001 From: deniszh Date: Fri, 22 Feb 2019 22:02:44 +0100 Subject: [PATCH] Fixing #88 --- conf/etc/service/carbon-aggregator/log/run | 3 +++ conf/etc/service/carbon-aggregator/run | 2 +- conf/etc/service/carbon-relay/log/run | 3 +++ conf/etc/service/carbon-relay/run | 2 +- conf/etc/service/carbon/log/run | 3 +++ conf/etc/service/carbon/run | 2 +- conf/etc/service/statsd/log/run | 3 +++ conf/etc/service/statsd/run | 2 +- 8 files changed, 16 insertions(+), 4 deletions(-) diff --git a/conf/etc/service/carbon-aggregator/log/run b/conf/etc/service/carbon-aggregator/log/run index e69de29..50ef730 100644 --- a/conf/etc/service/carbon-aggregator/log/run +++ b/conf/etc/service/carbon-aggregator/log/run @@ -0,0 +1,3 @@ +#!/bin/sh + +exec tee -a /var/log/carbon-aggregator.log \ No newline at end of file diff --git a/conf/etc/service/carbon-aggregator/run b/conf/etc/service/carbon-aggregator/run index 4219cfb..6013cb0 100755 --- a/conf/etc/service/carbon-aggregator/run +++ b/conf/etc/service/carbon-aggregator/run @@ -1,4 +1,4 @@ #!/bin/sh rm -f /opt/graphite/storage/carbon-aggregator-a.pid -exec python3 /opt/graphite/bin/carbon-aggregator.py start --debug 2>&1 | tee -a /var/log/carbon-aggregator.log +exec python3 /opt/graphite/bin/carbon-aggregator.py start --debug 2>&1 diff --git a/conf/etc/service/carbon-relay/log/run b/conf/etc/service/carbon-relay/log/run index e69de29..3aba1e6 100644 --- a/conf/etc/service/carbon-relay/log/run +++ b/conf/etc/service/carbon-relay/log/run @@ -0,0 +1,3 @@ +#!/bin/sh + +exec tee -a /var/log/carbon-relay.log \ No newline at end of file diff --git a/conf/etc/service/carbon-relay/run b/conf/etc/service/carbon-relay/run index 7fb24fa..1f7bdc8 100755 --- a/conf/etc/service/carbon-relay/run +++ b/conf/etc/service/carbon-relay/run @@ -3,4 +3,4 @@ [[ -n "${RELAY}" ]] || exit 1 rm -f /opt/graphite/storage/carbon-relay-a.pid -exec python3 /opt/graphite/bin/carbon-relay.py start --debug 2>&1 | tee -a /var/log/carbon-relay.log +exec python3 /opt/graphite/bin/carbon-relay.py start --debug 2>&1 diff --git a/conf/etc/service/carbon/log/run b/conf/etc/service/carbon/log/run index e69de29..fd8a260 100644 --- a/conf/etc/service/carbon/log/run +++ b/conf/etc/service/carbon/log/run @@ -0,0 +1,3 @@ +#!/bin/sh + +exec tee -a /var/log/carbon.log \ No newline at end of file diff --git a/conf/etc/service/carbon/run b/conf/etc/service/carbon/run index c079873..d9e2d5f 100755 --- a/conf/etc/service/carbon/run +++ b/conf/etc/service/carbon/run @@ -1,4 +1,4 @@ #!/bin/sh rm -f /opt/graphite/storage/carbon-cache-a.pid -exec python3 /opt/graphite/bin/carbon-cache.py start --debug 2>&1 | tee -a /var/log/carbon.log +exec python3 /opt/graphite/bin/carbon-cache.py start --debug 2>&1 diff --git a/conf/etc/service/statsd/log/run b/conf/etc/service/statsd/log/run index e69de29..e3ca9e2 100644 --- a/conf/etc/service/statsd/log/run +++ b/conf/etc/service/statsd/log/run @@ -0,0 +1,3 @@ +#!/bin/sh + +exec tee -a /var/log/statsd.log \ No newline at end of file diff --git a/conf/etc/service/statsd/run b/conf/etc/service/statsd/run index 571530f..fcf8ebb 100755 --- a/conf/etc/service/statsd/run +++ b/conf/etc/service/statsd/run @@ -4,4 +4,4 @@ if folder_empty /opt/statsd/config/; then cp /opt/defaultconf/statsd/config/*.js /opt/statsd/config/ fi -exec node /opt/statsd/stats.js /opt/statsd/config/$STATSD_INTERFACE.js 2>&1 | tee -a /var/log/statsd.log +exec node /opt/statsd/stats.js /opt/statsd/config/$STATSD_INTERFACE.js 2>&1