Created
November 20, 2012 22:47
-
-
Save phobos182/4121796 to your computer and use it in GitHub Desktop.
Diamond Upstart File
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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