# STEP11
# activate service
$ sudo systemctl enable mpd
# restart MPD
$ sudo systemctl start mpd
# if you have an error in your conf file and MPD didn't start type the following to get the error line:
$ sudo systemctl status mpd
# loop step 10/11 to fix mpd.conf until MPD start correctly without error (see previous step)
# STEP12
# create playlists directory if not exists
$ ls -l /var/lib/mpd/
pi@musiclounge:~$ ls -l /var/lib/mpd/ total 28 drwxr-xr-x 2 root root 4096 Feb 25 2019 music drwxr-xr-x 2 mpd audio 4096 Feb 25 2019 playlists -rw-r--r-- 1 mpd audio 189 Jun 18 04:37 state -rw-r--r-- 1 mpd audio 12288 Jun 18 04:29 sticker.sql -rw-r--r-- 1 mpd audio 241 Jun 18 04:41 tag_cache
# SKIP THIS STEP if playlists directory exists (should be already created by MPD installation)
# if the directory does not exist, create it
$ sudo mkdir /var/lib/mpd/playlists
# change user:group if not mpd:audio
$ sudo chown mpd:audio /var/lib/mpd/playlists
# set permission if not already 755
$ sudo chmod 755 /var/lib/mpd/playlists
Click the button NEXT below to continue...