The command you'll want to use from the CLI is 'poweroff'.
A couple other thoughts regarding ways to build the initial db:
- Try killing mpd using "mpd --kill" periodically during the update and see of it writes the current db to disk, under some scenarios I've seen it do this, but I don't recall exactly what I did. If it works it would be simple to create a script to do this automatically for you for a few hours.
The script would look something like this:That would kill mpd every ten minutes for four hours (and hopefully flushing the db to disk and clearing the mem leak), the numbers could be tweaked based on how long you think the update would take. That's all assuming mpd --kill will flush the db, but I'm just guessing on that point at the moment.Code: Select all
#!/bin/sh counter=1 mpdPeriodicUpdate() { mpc update sleep 600 mpd --kill sleep 15 mpd } while [ $counter -le 25 ] do mpdPeriodicUpdate counter=(( $counter + 1 )) done
- Point MPD to an empty folder on your NAS and migrate your music to the folder in pieces.
- Build the db on another machine as I mentioned before.