minidlna crashes on boot when no active network connection
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
minidlna (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I've used update-rc.d to make sure it is set to start on boot, but upon booting it is never started. There is never any error in the syslog or the minidlna log.
twice now it has also halted the boot process. I did not record the exact text, but it clearly is complaining that there is no network. It seems to only complain on stderr and not in the log file. My network normally does not come up until just after the login screen shows, when I see the network manager balloon telling about it.
in the conf file I have log_level=debug and network_interface= is commented out.
in /etc/default/
after booted and logged in, "service minidlna start" always works.
minidlna version 1.024+dfsg-1 on 12.10 beta. I have not run it on older releases.
I can confirm this on 12.04. the problem is indeed related to the network. I have a wifi connection and if I run it without a network connection, it fails to start.Moving the init script to a higher id in the rc init process doesn't seem to work either.
The solution I found is to move the init to upstart as you can tell it to wait until network is up. So I wrote really simple upstart script and I would have put it somewhere if anybody is interesting. But this require a change in the package so the package maintainers should really put it there or write their own.
I would be glad to share this solution....