#!/bin/bash cat /etc/collectd/collectd.conf.tmpl > /etc/collectd/collectd.conf cat << EOF >> /etc/collectd/collectd.conf Hostname "${COLLECTD_LOCAL_HOSTNAME}" Host "${COLLECTD_GRAPHITE_HOSTNAME}" Port "2003" EOF collectd -C /etc/collectd/collectd.conf -f