Daily update MPD database using crontab

I’ve managed to solve issues of my MPD freezing and losing my NAS mount by running a crontab script every day. However it doesn’t appear that the update (i.e. update the MPD database) is working. So perhaps the restart isn’t working either.

Around 6am I want to: Restart Volumio, restart MPD after reboot, mount my NAS, update MPD database. This is what I’m doing so far:

10 6 * * * /sbin/shutdown -r now
25 6 * * * /etc/init.d/mpd restart
30 6 * * * mount.cifs //192.168.0.180/public/Music /mnt/NAS —verbose -o user=user,password=password,rw,iocharset=utf8,sec=ntlm
32 6 * * * /etc/init.d/mpd update

Do I need to change something?

Ok I can see that “/etc/init.d/mpd update” is not right.

So what is the correct way to do updatempdDB manually using the command line? Someone must know. :slight_smile:

Typing “updatempdDB” doesn’t work.

I don’t use volumio yet (waiting for my cubox-i), but normally with mpd, you update the database using the mpc client which I assume is supplied.

As simple as ‘mpc update’

That seems to have worked entering it ‘live’ - I’ll add it to chrontab and see what happens. Thanks!