Skip to content

Instantly share code, notes, and snippets.

@phobos182
Created November 20, 2012 22:47
Show Gist options
  • Save phobos182/4121796 to your computer and use it in GitHub Desktop.
Save phobos182/4121796 to your computer and use it in GitHub Desktop.
Diamond Upstart File
# diamond - A system statistics collector for graphite
#
# Diamond is a daemon and toolset for gather system statistics
# and publishing them to graphite.
description "Diamond system statistics collector"
start on (local-filesystems and net-device-up IFACE!=lo)
stop on [!12345]
limit nofile 32768 32768
kill timeout 5
script
export DIAMOND_PID="/var/run/diamond.pid"
export DIAMOND_USER="diamond"
exec start-stop-daemon --chuid $DIAMOND_USER --start --make-pidfile --pidfile $DIAMOND_PID --exec /usr/bin/diamond -- --foreground --skip-fork --skip-pidfile --skip-change-user -p $DIAMOND_PID
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment