Hi Holger,

the attached systemd files seem to work for me.
They allow removing /etc/init.d/munin and /etc/cron.d/munin
and changing cron from Depend to Recommend/Suggest.

Cheers
[Unit]
Description=Munin service
Documentation=man:munin-cron(8)

[Service]
User=munin
Type=oneshot
ExecStart=/usr/bin/munin-cron
[Unit]
Description=Munin timer

[Timer]
OnCalendar=*:0/5
Persistent=true

[Install]
WantedBy=timers.target
[Unit]
Description=Munin startup

[Service]
ExecStart=/bin/sh -c "mkdir -p /var/run/munin && chown munin /var/run/munin"
Type=oneshot

[Install]
WantedBy=multi-user.target
[Unit]
Description=Munin CGI Graph socket

[Socket]
ListenStream=/var/run/munin/fcgi-graph.sock
Accept=false

[Install]
WantedBy=sockets.target
[Unit]
Description=Munin CGI Graph service
After=network.target
Requires=munin-cgi-graph.socket

[Service]
ExecStart=/usr/lib/munin/cgi/munin-cgi-graph
User=www-data
Type=simple
Group=www-data
StandardInput=socket

[Install]
WantedBy=multi-user.target

Reply via email to