Created attachment 184696 [details] Changes to munin-asyncd rc file The current rc file does not correctly start up munin-asyncd, hanging when invoked. This can lead to machines getting stuck on startup, as has happened to me, preventing even SSH from starting up. This effectively renders the machine useless and it must be booted with a rescue system. I have attached a diff that resolved this issue, also adding a (missing) stop action.
Assign to maintainer (initial summary missing category was not auto-assigned)
This seems very strange, I do not think the patch is right.
Well, I have tested it on 4 completely different FreeBSD machines and all of them exhibited the same problem. Just today I had to service a machine that rebooted due to a power failure and hung at boot exactly at the start of the munin-asyncd service. Changing the rc file to my diff resolved this issue.
I was right, the patch did not seem right, but asyncd using setproctitle messes the hell out of rc.subr.
A commit references this bug: Author: mat Date: Thu Aug 3 13:34:58 UTC 2017 New revision: 447210 URL: https://svnweb.freebsd.org/changeset/ports/447210 Log: Fix starting and stopping munin-asyncd. [1] Turns out creating a start_cmd function is not enough, you have to add a variable, start_cmd and point it to the start_cmd function. As for stopping it, it should work out of the box, but for the fact that munin-asyncd uses setproctitle or something, and it confuses the hell out of rc.subr. While there, pet rclint. PR: 221000 [1] (based on) Submitted by: marcel herrbischoff com Sponsored by: Absolight Changes: head/sysutils/munin-node/Makefile head/sysutils/munin-node/files/munin-asyncd.in head/sysutils/munin-node/files/munin-node.in head/sysutils/munin-node/files/munin-sched.in