Skip to content

Instantly share code, notes, and snippets.

@asyd
Forked from joemiller/carbon-cache@i.service
Last active August 29, 2015 14:15
Show Gist options
  • Save asyd/41afb5512b602662a415 to your computer and use it in GitHub Desktop.
Save asyd/41afb5512b602662a415 to your computer and use it in GitHub Desktop.
[Unit]
Description=carbon-cache instance %i (graphite)
[Service]
User=graphite
Group=graphite
ExecStartPre=/bin/rm -f /opt/graphite/storage/carbon-cache-%i.pid
ExecStart=/opt/graphite/bin/carbon-cache.py --instance=%i start
Type=forking
PIDFile=/opt/graphite/storage/carbon-cache-%i.pid
LimitNOFILE=128000
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment