Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 445514 - mpd-0.16.8 fails to start using /etc/init.d/mpd script
Summary: mpd-0.16.8 fails to start using /etc/init.d/mpd script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-01 20:06 UTC by Aistis Jokubauskas
Modified: 2012-12-01 20:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Configuration file example (mpd.conf,567 bytes, text/plain)
2012-12-01 20:07 UTC, Aistis Jokubauskas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aistis Jokubauskas 2012-12-01 20:06:15 UTC
mpd does not start using /etc/init.d/mpd script.

mpd fails to access /var/run/mpd.pid created by init script, exits with none zero value.

Reproducible: Always

Steps to Reproduce:
1. Set mpd to run as mpd user, in /etc/mpd.conf file there is user setting, set it to "mpd".
2. run 'rc-service mpd start'
3. run 'rc-status' it shows that mpd crashed
Actual Results:  
> rc-status | grep mpd
 mpd                                                               [  crashed  ]


Expected Results:  
> rc-status | grep mpd
 mpd                                                               [  started  ]

Results produced running mpd from command line after pid file was created by init script.

> mpd --no-daemon --verbose
config: loading file /etc/mpd.conf
path: path_set_fs_charset: fs charset is: UTF-8
database: reading DB
daemon: opening pid file
daemon: could not create pid file "/var/run/mpd.pid": Permission denied
> echo $?
1
Comment 1 Aistis Jokubauskas 2012-12-01 20:07:26 UTC
Created attachment 331154 [details]
Configuration file example
Comment 2 Aistis Jokubauskas 2012-12-01 20:29:27 UTC
Solved it my self :D. In case some one else stumble on this comment out pidfile option in /etc/mpd.conf file:

# pid_file			"/var/run/mpd.pid"