#!/usr/bin/env bash if [ ! -r /var/lib/graphite/graphite.db ]; then graphite-manage migrate graphite-manage createsuperuser --noinput --username=admin --email root@localhost.localdomain chown -R _graphite:_graphite /var/lib/graphite/ fi service apache2 start service carbon-cache start while true; do sleep 10; done