Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#5663 - mpd: /etc/rc.d/mpd line 10: remove "/etc/mpd.conf" for more flexibility

Attached to Project: Arch Linux
Opened by Jakob H. (jakob) - Tuesday, 24 October 2006, 17:26 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hello!

The mpd daemon-script in /etc/rc.d/ calls mpd in line 10 (of the file) as follows:

" [ -z "$PID" ] && /usr/bin/mpd /etc/mpd.conf &> /dev/null"

This forces mpd to read the configuration file from /etc/mpd.conf ONLY.

People who are using ~/.mpdconf have to delete the location "/etc/mpd.conf" in /etc/rc.d/mpd, before they can use their custom config file.

As mpd looks up /etc/mpd.conf anyway (see 'mpd --help'), it would be nice to see this in the next release.

jakob
This task depends upon

Closed by  Roman Kyrylych (Romashka)
Wednesday, 08 November 2006, 21:57 GMT
Reason for closing:  Won't fix
Comment by Jan de Groot (JGC) - Tuesday, 24 October 2006, 21:27 GMT
Ehm, /etc/rc.d scripts aren't supposed to do something with configuration files outside /etc anyways. Firing up mpd from /etc/rc.d with a config file in your /home is wrong for a system daemon.
Comment by Jakob H. (jakob) - Wednesday, 25 October 2006, 05:20 GMT
So to do nothing wrong, I'm not allowed to use ~/.mpdconf but I have to use /etc/mpd.conf ?

I mean, what is the use of the option "user" in the conf file for, if it is wrong to use it? I guess I have to fire up mpd as user to be on the right way?
Comment by Jan de Groot (JGC) - Wednesday, 25 October 2006, 06:19 GMT
When you fire up mpd from the /etc/rc.d script, you're supposed to use the /etc/mpd.conf file. The option "user" makes mpd run as a specific user, just like postfix that runs with some mailserver userid for example. Postfix also isn't started with configuration files from ~, is it?
Comment by Roman Kyrylych (Romashka) - Wednesday, 08 November 2006, 21:56 GMT

Loading...