Summary: | net-analyzer/munin-2.0.56 - munin-node fails to start on boot - start-stop-daemon: did not create a valid pid in `/run/munin-node.pid' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Account Removed <34b0b73c6290cb353fc5ba2574033bd799e635d3> |
Component: | Current packages | Assignee: | Sysadmin Bugs <sysadmin> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | 34b0b73c6290cb353fc5ba2574033bd799e635d3, graaff |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Account Removed
2020-06-03 15:45:32 UTC
Init-System is OpenRC After manually starting, things look ok: cat /run/munin-node.pid 7004 pgrep munin-node 7004 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
20c20
< 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. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f9821904b8f12c035cfc02a1cce689b81228300 commit 1f9821904b8f12c035cfc02a1cce689b81228300 Author: Hans de Graaff <graaff@gentoo.org> AuthorDate: 2023-07-22 08:11:33 +0000 Commit: Hans de Graaff <graaff@gentoo.org> CommitDate: 2023-07-23 05:51:01 +0000 net-analyzer/munin: depend on hostname and net in init file Closes: https://bugs.gentoo.org/726952 Signed-off-by: Hans de Graaff <graaff@gentoo.org> net-analyzer/munin/files/munin-node_init.d_2.0.73 | 27 ++ net-analyzer/munin/munin-2.0.73-r3.ebuild | 417 ++++++++++++++++++++++ 2 files changed, 444 insertions(+) |