mpd has a directory where, among other things, its database and pid are stored.
If mpd is run system wide as root, this is /var/lib/mpd, as you should set in /etc/mpd.conf: cascavel:~] ls -al /var/lib/mpd total 12604 drwxr-xr-x. 5 mpd mpd 4096 Jul 18 07:12 . drwxrwxr-x. 78 root procgrafico 4096 Jul 14 22:37 .. -rw-r--r--. 1 mpd mpd 3350971 Jul 20 17:37 database -rw-------. 1 mpd mpd 16 Jul 5 2012 .esd_auth -rw-r--r--. 1 root root 9508991 Jul 24 18:20 log drwxr-xr-x. 2 mpd mpd 4096 Jul 10 09:08 music -rw-r--r--. 1 mpd mpd 5 Jul 18 07:12 pid drwxr-xr-x. 2 mpd mpd 4096 Jul 10 09:08 playlists drwx------. 2 mpd mpd 4096 Feb 9 00:09 .pulse -rw-------. 1 mpd mpd 256 Jul 5 2012 .pulse-cookie -rw-r--r--. 1 mpd mpd 3258 Jul 20 17:42 state If mpd is run for a single user this is generally ~/.mpd: [cascavel:~] ls -al ~/.mpd total 8260 drwxrwxr-x. 4 roma roma 4096 Mar 11 08:45 . drwxr-xr-x. 115 roma roma 12288 Jul 24 17:10 .. drwxrwxr-x. 2 roma roma 4096 Sep 2 2012 .AppleDouble -rw-rw-r--. 1 roma roma 3313663 Mar 7 09:00 database -rw-rw-r--. 1 roma roma 5093395 Mar 11 17:30 log -rw-r--r--. 1 roma roma 13727 Jul 7 2012 mpd.conf -rw-rw-r--. 1 roma roma 5 Mar 11 08:45 pid drwxrwxr-x. 2 roma roma 4096 Oct 14 2012 playlists -rw-rw-r--. 1 roma roma 3917 Mar 7 09:32 state Therefore, there has never been a /var/run/mpd. To use the system wide approach with selinux active, the files must be labelled "audio_home_t". Nonetheless, you have to edit /etc/mpd.conf and set your choices, removing the pounds (#) at least until: #state_file "/var/lib/mpd/state" Otherwise, I doubt mpd will work... On Thu, Jul 25, 2013 at 8:14 AM, Kim Bisgaard <kim...@alleroedderne.adsl.dk>wrote: > Hi Paulo, > > I have tried to use it on F19. THANKS!! > > I could not get it to start. It threw a very misleading error - "Failed to > bind to 'localhost': No such file or directory", but the real reason was > that the directory "/var/run/mpd" was not created. > > This in it self has nothing to do with systemd as such, just because > Fedora introduced the empty /var at the same time (tmpfs mounted /var) . > > Hope this clears it up? > > Regards, > Kim > > > On 2013-07-25 12:25, Paulo Cavalcanti wrote: > > Hi, > > the version for F17 uses systemd, ant the other for rhel6, does not. > > What version do you mean? > > > > > On Tue, Jul 23, 2013 at 8:51 AM, Kim Bisgaard < > kim...@alleroedderne.adsl.dk> wrote: > >> Hi Paulo, >> >> Could I persuade you to create the directory with the socket file in the >> package? This prevents the package to work on distributions with systemd. >> >> The spec-file-fu is something like the following: >> file mpd.tpmfilesd with this line: >> d /var/run/mpd 0755 mpd audio - >> >> Source10: mpd.tmpfilesd >> >> %if %{with systemd} >> #install -p -D -m 644 %{SOURCE10} $RPM_BUILD_ROOT%{_tmpfilesdir}/mpd.conf >> install -p -D -m 644 %{SOURCE10} $RPM_BUILD_ROOT/etc/tmpfiles.d/mpd.conf >> %endif >> >> Regards, >> Kim >> >> >> >> On 2013-07-10 14:30, Paulo Cavalcanti wrote: >> >> Hi, Axel >> >> I have two versions. One for Fedora, which uses mpd.service, >> and another for rhel6 with /etc/rc.d/init.d/mpd. >> >> The fedora version is the same we had before, but the rhel6 will allow >> an upgrade from the previous 0.16.7 we have at ATrpms. >> >> Thanks. >> >> >> http://people.atrpms.net/~pcavalcanti/srpms/mpd-0.17.4-25.el6.src.rpm >> >> >> http://people.atrpms.net/~pcavalcanti/srpms/mpd-0.17.4-27.fc17.src.rpm >> >> >> >> -- >> Paulo Roma Cavalcanti >> LCG - UFRJ >> >> >> _______________________________________________ >> atrpms-devel mailing >> listatrpms-devel@atrpms.nethttp://lists.atrpms.net/mailman/listinfo/atrpms-devel >> >> >> >> _______________________________________________ >> atrpms-devel mailing list >> atrpms-devel@atrpms.net >> http://lists.atrpms.net/mailman/listinfo/atrpms-devel >> > > > > -- > Paulo Roma Cavalcanti > DCC - UFRJ > > > _______________________________________________ > atrpms-devel mailing > listatrpms-devel@atrpms.nethttp://lists.atrpms.net/mailman/listinfo/atrpms-devel > > > > _______________________________________________ > atrpms-devel mailing list > atrpms-devel@atrpms.net > http://lists.atrpms.net/mailman/listinfo/atrpms-devel > -- Paulo Roma Cavalcanti DCC - UFRJ
_______________________________________________ atrpms-devel mailing list atrpms-devel@atrpms.net http://lists.atrpms.net/mailman/listinfo/atrpms-devel