First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 181730
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Andrej Kacian (RETIRED) <ticho@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Alexey B. <acore@ngs.ru>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
mpd-script.patch patch to fix a problem this mpd stop and restart patch Alexey B. 2007-06-12 09:54 0000 235 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 181730 depends on: Show dependency tree
Bug 181730 blocks:

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-06-12 09:46 0000
This bug detected in mpd starting script. When I try to restart or stop mpd, I
take the error:

#/etc/init.d/mpd stop
 * Stopping Music Player Daemon ...
no pid_file specified in the config file

It occurs because of the mistake in function stop() in the script. There is no
config file parameter at the commandline. I fix this trouble and attach the
patch.

Reproducible: Always

Steps to Reproduce:
1.#/etc/init.d/mpd start
2.#/etc/init.d/mpd stop

Actual Results:  
 * Stopping Music Player Daemon ...
no pid_file specified in the config file

Expected Results:  
 * Stopping Music Player Daemon ...                                            
               [ ok ]

------- Comment #1 From Alexey B. 2007-06-12 09:54:37 0000 -------
Created an attachment (id=121791) [edit]
patch to fix a problem this mpd stop and restart

------- Comment #2 From Dawid Węgliński 2007-06-12 12:02:57 0000 -------
The /etc/mpd.conf file hould includes:
pid_file                        "/var/run/mpd/mpd.pid"

You are probably missing that line. Reopen if i'm wrong and reassign to
bug-wranglers. Even if, that's not a Bugzilla bug.

------- Comment #3 From Alexey B. 2007-06-12 13:40:52 0000 -------
Now I can see that the problem not in the script.

# strace -e trace=open mpd --kill
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/lib/libnsl.so.1", O_RDONLY)      = 3
open("/usr/lib/libasound.so.2", O_RDONLY) = 3
open("/lib/libm.so.6", O_RDONLY)        = 3
open("/lib/libpthread.so.0", O_RDONLY)  = 3
open("/usr/lib/libid3tag.so.0", O_RDONLY) = 3
open("/lib/libz.so.1", O_RDONLY)        = 3
open("/usr/lib/libmad.so.0", O_RDONLY)  = 3
open("/usr/lib/libmikmod.so.2", O_RDONLY) = 3
open("/lib/libdl.so.2", O_RDONLY)       = 3
open("/lib/libc.so.6", O_RDONLY)        = 3
open("/home/core/.mpdconf", O_RDONLY)   = 3
no pid_file specified in the config file
Process 11934 detached

Local config file, which was empty, open by mpd instead of global config file
/etc/mpd.conf
When I remove this file, daemon stop procedure take a place without errors.

------- Comment #4 From Alexey B. 2007-06-12 13:45:49 0000 -------
Where i can reassign this problem to fix it?

------- Comment #5 From Andrej Kacian (RETIRED) 2007-06-12 22:49:52 0000 -------
Fixed in CVS, thanks. I wonder why my mpd goes straight for /etc/mpd.conf
unlike yours...

First Last Prev Next    No search results available      Search page      Enter new bug