Graphite - systemd units
This commit is contained in:
parent
76de7a31ef
commit
618b2d7d6a
|
@ -0,0 +1,20 @@
|
||||||
|
[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
|
|
@ -0,0 +1,20 @@
|
||||||
|
[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
|
|
@ -0,0 +1,19 @@
|
||||||
|
[Unit]
|
||||||
|
Description=carbon-relay 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-relay-%i.pid
|
||||||
|
ExecStart=/opt/graphite/bin/carbon-relay.py --instance=%i start
|
||||||
|
Type=forking
|
||||||
|
PIDFile=/run/graphite/carbon-relay-%i.pid
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue