2016/monitoring/graphite/systemd-units/etc/systemd/system/carbon-cache@.service
2015-10-19 11:44:02 +03:00

21 lines
533 B
Desktop File

[Unit]
Description=carbon-cache instance %i (graphite)
After=network.target
[Service]
User=graphite
Group=graphite
PrivateTmp=yes
# Run ExecStartPre with root-permissions
PermissionsStartOnly=true
ExecStartPre=-/bin/mkdir -p /run/graphite
ExecStartPre=/bin/chown -R graphite:graphite /run/graphite
ExecStartPre=/bin/rm -f /run/graphite/carbon-cache-%i.pid
ExecStart=/opt/graphite/bin/carbon-cache.py --instance=%i start
Type=forking
PIDFile=/run/graphite/carbon-cache-%i.pid
LimitNOFILE=128000
[Install]
WantedBy=multi-user.target