net-misc/minidlna-1.3.0-r2 consistently crashes on start if started by OpenRC (and possibly by other startup methods), but starts correctly if launched manually. The problem here appears to lie in the start_stop_daemon invocation. It seems the user and group are not being correctly passed to minidlnad. Changing /etc/init.d/minidlna from: command_args="-P $pidfile -f $CONFIG" start_stop_daemon_args="--user ${M_USER}:${M_GROUP}" to: command_args="-P $pidfile -f $CONFIG -u ${M_USER} -g ${M_GROUP}" start_stop_daemon_args='' appears, in my case at least, to resolve the problem. Patch attached. Reproducible: Always
Created attachment 768080 [details, diff] Patch to /etc/init.d/minidlna to fix crash on startup