Skip to content

Instantly share code, notes, and snippets.

@therealcisse
Forked from joemiller/carbon-cache@i.service
Created March 8, 2017 00:27
Show Gist options
  • Save therealcisse/292e36081e5ed59f94401814a0758fae to your computer and use it in GitHub Desktop.
Save therealcisse/292e36081e5ed59f94401814a0758fae to your computer and use it in GitHub Desktop.
leveraging systemd instantiated units for graphite carbon-cache instances
[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