Having this /etc/mpd.conf : user "mpd" group "audio" #.... audio_output { #.... user "mpd" #.... } #.... I tracked it down to the sed line in the get_config function $ sed -n -e '/^[ \t]*'user'/{s:^[ \t]*'user'[ \t]\+"\?\([^#"]\+\)[^"]*"\?$:\1: ; p }' /etc/mpd.conf mpd mpd the get_config() function for user used by the init script returns mpd twice (each on a new line) which in turn results in a failure for the checkpath Currently as a workaround I moved that section to a different file and used an include in the /etc/mpd.conf file.
"{p;q}" instead of "p" to match the first line ? sed -n -e '/^[ \t]*'user'/{s:^[ \t]*'user'[ \t]\+"\?\([^#"]\+\)[^"]*"\?$:\1: ; {p;q} }' /etc/mpd.conf