System completely up-to-date as of 2020-06-02
munin-node fails to start on boot:
Jun 3 17:29:57 <hostname> /etc/init.d/munin-node: start-stop-daemon: did not create a valid pid in `/run/munin-node.pid'
Jun 3 17:29:57 <hostname> /etc/init.d/munin-node: ERROR: munin-node failed to start
No process "*munin*" there after boot.
Have to start munin-node after boot manually with
only after that munin-node is in status running:
* status: started
Init-System is OpenRC
After manually starting, things look ok:
So there is a problem with the pid file only on boot.
The following modification of /etc/init.d/munin-node fixes the bug for me:
diff backup/munin-node ./munin-node
< before cron
> need net
Without this patch, munin-node was tried to start right after syslog-ng as the second daemon according to /var/log/messages (when the network links where not up yet), which was apparently too early for some reason.
BTW what is the reason for the "before cron" dependency? A comment should explain it.
I am not quite sure, if there is a use case when munin-node should run on a node without network (or at least without an init script resource that provides "net").
Maybe, also "net" is not really needed by munin-node, but something other, I don't know, it just fixes the bug for me, to depend on net.