ansible-roles/nginx/files/systemd/fcgi-munin-graph.service
Mathieu Trossevin 93084d6ce8
Some checks failed
continuous-integration/drone/pr Build is failing
nginx: Do not use spawn-fcgi for munin-graph
systemd provides already provides all the fonctionnalities of spawn-fcgi
with the exception of the possibility to spawn multiple process to a
single socket (it can be done using multiwatch though). So we might as
well use the fonctions provided by systemd instead of needing to install
a new package and add a layer of indirection in how the fastcgi service
is managed.

This make for a somewhat simpler service that can be started as an
unprivileged user.
2021-11-17 13:52:15 +01:00

16 lines
275 B
Desktop File

[Unit]
Description=Munin zoom for nginx.
After=network.target
Requires=fcgi-munin-graph.socket
[Service]
User=munin
Group=munin
ExecStart=/usr/lib/munin/cgi/munin-cgi-graph
StandardInput=socket
StandardOutput=null
StandardError=journal
[Install]
WantedBy=multi-user.target