Skip to content

Commit

Permalink
Maybe Fixes #305
Browse files Browse the repository at this point in the history
  • Loading branch information
johann8384 committed Mar 21, 2016
1 parent d7e26e9 commit f0650dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion debian/tcollector.init
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
# Short-Description: Starts tcollector
### END INIT INFO

PYTHONPATH="$PYTHONPATH:/usr/lib/tcollector"
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/tcollector
EXTRA_TAGS=""
Expand Down Expand Up @@ -64,7 +65,7 @@ case $1 in
fi
fi

$taskset start-stop-daemon --start --quiet -u $RUN_AS_USER\
PYTHONPATH=$PYTHONPATH $taskset start-stop-daemon --start --quiet -u $RUN_AS_USER\
--pidfile "$PIDFILE" --chuid $RUN_AS_USER:$RUN_AS_GROUP\
--startas $DAEMON -- -c "$COLLECTOR_PATH" -L $TSD_HOSTS\
-t host=$HOSTNAME --dedup-interval $DEDUP_INTERVAL\
Expand Down
1 change: 1 addition & 0 deletions tcollector.py
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,7 @@ def parse_cmdline(argv):
defaults = config.get_defaults()
except ImportError:
sys.stderr.write("ImportError: Could not load defaults from configuration. Using hardcoded values")
default_cdir = os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])), 'collectors')
defaults = {
'verbose': False,
'no_tcollector_stats': False,
Expand Down

0 comments on commit f0650dd

Please sign in to comment.