Modify

Opened 10 years ago

Last modified 8 years ago

#3454 new enhancement

mpd, mountwait

Reported by: michu-at-neophobdotcom Owned by: blogic
Priority: normal Milestone: Features Paradise
Component: packages Version: Kamikaze trunk
Keywords: Cc:

Description

perhaps it would make sense, to wait until the mp3 directory is availabe before mpd create its db...

        # Check if Mountdirectory exist
        MP3PATH=/mnt/usbdrive/_mp3
        COUNT=0

        while [ 1 ]; do
                [ -d $MP3PATH ] && {
                        break
                }

                if [ $COUNT -lt 3 ]; then
                     /usr/bin/logger -s MPD.init: [WARNING] mount path not ready yet, sleep 1s
                     let COUNT=COUNT+1
                fi
                /bin/sleep 1
        done

Attachments (0)

Change History (2)

comment:1 Changed 10 years ago by blogic

  • Milestone set to Kamikaze Features Paradize

comment:2 Changed 8 years ago by spudz76

  • Owner changed from developers to blogic
  • Version set to Kamikaze trunk

[patchteam] This may be better implemented via UCI path setting and/or a "mountwait" boolean option, so the mp3 path is not hardcoded and the wait loop is not always enabled unless needed. Or, perhaps a patch done upstream as it would seem a good thing on other distributions as well (and then we wrap in our UCI options). Assigning ticket to the last person to touch it (you're it!).

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.