#!/bin/sh
#
# What collectorforlinux.service runs; run it with sudo to try a configuration in the foreground.

COLLECTORD_HOME="${COLLECTORD_HOME:-/opt/collectorforlinux}"
export COLLECTORD_HOME

exec "${COLLECTORD_HOME}/bin/collectord" monitor \
  --environment linux \
  --conf "${COLLECTORD_HOME}/etc" \
  --env-override "COLLECTOR__"
