2018/monitoring/graphite/systemd-units/carbon-aggregator@.service

21 lines
553 B
SYSTEMD
Raw Normal View History

2018-10-26 15:02:07 +03:00
[Unit]
Description=carbon-aggregator 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-aggregator-%i.pid
ExecStart=/opt/graphite/bin/carbon-aggregator.py --instance=%i start
Type=forking
PIDFile=/run/graphite/carbon-aggregator-%i.pid
LimitNOFILE=128000
[Install]
WantedBy=multi-user.target