bottleneck
Choose style:

Author Topic: minidlna after reboot  (Read 4348 times)

0 Members and 1 Guest are viewing this topic.

Offline whiter.walt

  • Backer
  • *
  • Posts: 11
  • Thanks: 0
  • Registered : 27/04/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
minidlna after reboot
« on: September 13, 2014, 08:09:55 am »
hi,

every time I reboot the almond+, I have to restart the minidlna service to rebuild the database. I think the reason is, that the service starts before the external usb drive has been mounted.
My knowledge about linux systems is very limited. That is why I don't know, where I can set up things for the router start up. Maybe someone could help me out!

cheers

Offline whiter.walt

  • Backer
  • *
  • Posts: 11
  • Thanks: 0
  • Registered : 27/04/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: minidlna after reboot
« Reply #1 on: September 18, 2014, 09:05:30 am »
Hi,

i am answering the question by myself for those who are looking for a solution too. There might be a better solution for this problem, but it works for me  ;)
Feel free to propose better approaches!

I put an empty file "ismounted" on my usb drive, which I will check in a shell script on router startup, if it exists. When the file exists the minidlna service gets reloaded

Code: ("startdlna") [Select]
#!/bin/bash

while : ; do
    [[ -f "/path/to/usbdrive/ismounted" ]] && break
    sleep 1
done

/etc/init.d/minidlna reload

Let's assume the script name is "startdlna". Move it to "/etc/init.d/". To run the script during startup you have to put a symbolic link to "/etc/rc.d/". I think these scripts are executed in alphabetical order. So I named the link "S99startdlna".

Create the symbolic link as follows:
Code: [Select]
ln -s /etc/init.d/startdlna /etc/rc.d/S99startdlna

cheers!

Offline whiter.walt

  • Backer
  • *
  • Posts: 11
  • Thanks: 0
  • Registered : 27/04/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: minidlna after reboot
« Reply #2 on: September 25, 2014, 05:48:39 am »
since Firmware R066 "/etc/rc.local" contains a line to restart the minidlna service, which does not solve the problem. the minidlna service still contains an empty database after startup.

LGNilsson

  • Guest
Re: minidlna after reboot
« Reply #3 on: September 25, 2014, 06:40:32 am »
I've reported this as a bug to the software team.

 

Page created in 0.057 seconds with 18 queries.

bottleneck