Init: Unable to create /var/run/mpd/mpd.pid

Bug #64293 reported by MrHaroldA
6
Affects Status Importance Assigned to Milestone
mpd (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: mpd

Every time I reboot my pc, I have to recreate /var/run/mpd and re-own it to mpd:mpd to be able to start the Music Player Daemon.

"Starting Music Player Daemon: could not open pid_file "/var/run/mpd/pid" (at line 20) for writing: No such file or directory
failed."

Version: 0.12.0-0ubuntu1
Dist: (X)ubuntu Edgy

Revision history for this message
Andy Price (andy-price) wrote :

Confirmed. This is happening because files in /var/run/ get wiped on reboot including /var/run/mpd/ so the mpd init script is unable to write the PID file to that location.

Changed in mpd:
status: Unconfirmed → Confirmed
Changed in mpd:
importance: Undecided → Medium
Revision history for this message
Lionel Porcheron (lionel.porcheron) wrote :

Here is the patch that fix the problem (creates the the pid dir in the /etc/init.d/mpd script).

Revision history for this message
Xavier (chantry-xavier) wrote :

Confirming the issue, and that the patch (which I applied manually) fix the problem. But is this a proper fix?
It seems there are several pid files in /var/run/, so it isn't specific to mpd. Is it handled the same way in other apps? (pid file specified in a config file, and the init script has to parse the config file to get the path)

Revision history for this message
Xavier (chantry-xavier) wrote :

mpd (0.12.1-1ubuntu1) edgy; urgency=low

  * Sync from Debian Sid
  * debian/mpd.init.d:
    - create /var/run/ directory if necessary and set proper permissions
      (Closes Ubuntu 64293)

 -- Lionel Porcheron <email address hidden> Sat, 14 Oct 2006 13:02:49 +0200

Xavier (chantry-xavier)
Changed in mpd:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.