Commit 3e79e62c authored by kaliko's avatar kaliko Committed by Max Kellermann

doc/mpd.conf.5.rst: Update mpd.conf manual

Update description with content from user manual [0]. Remove obsolete information regarding "required parameters" and log_level [0] https://www.musicpd.org/doc/html/user.html#the-configuration-file
parent 27b69330
...@@ -11,24 +11,34 @@ not specified on the command line, MPD first searches for it at ...@@ -11,24 +11,34 @@ not specified on the command line, MPD first searches for it at
:file:`$XDG_CONFIG_HOME/mpd/mpd.conf` then at :file:`~/.mpdconf` then :file:`$XDG_CONFIG_HOME/mpd/mpd.conf` then at :file:`~/.mpdconf` then
at :file:`~/.mpd/mpd.conf` and then in :file:`/etc/mpd.conf`. at :file:`~/.mpd/mpd.conf` and then in :file:`/etc/mpd.conf`.
Lines beginning with a :samp:`#` character are comments. All other Each line in the configuration file contains a setting name and its value, e.g.:
non-empty lines specify parameters and their values. These lines
contain the parameter name and parameter value (surrounded by double
quotes) separated by whitespace (either tabs or spaces). For
example::
parameter "value" :code:`connection_timeout "5"`
The exception to this rule is the audio_output parameter, which is of For settings which specify a filesystem path, the tilde is expanded:
the form::
:code:`music_directory "~/Music"`
Some of the settings are grouped in blocks with curly braces, e.g. per-plugin settings:
.. code-block:: none
audio_output { audio_output {
parameter1 "value" type "alsa"
parameter2 "value" name "My ALSA output"
device "iec958:CARD=Intel,DEV=0"
mixer_control "PCM"
} }
The :code:`include` directive can be used to include settings from
another file; the given file name is relative to the current file:
:code:`include "other.conf"`
You can use include_optional instead if you want the included file to be
optional; the directive will be ignored if the file does not exist:
Parameters that take a file or directory as an argument should use absolute paths. :code:`include_optional "may_not_exist.conf"`
See :file:`docs/mpdconf.example` in the source tarball for an example See :file:`docs/mpdconf.example` in the source tarball for an example
configuration file. configuration file.
...@@ -38,7 +48,7 @@ Please read the MPD user manual for a complete configuration guide: ...@@ -38,7 +48,7 @@ Please read the MPD user manual for a complete configuration guide:
http://www.musicpd.org/doc/user/ http://www.musicpd.org/doc/user/
REQUIRED PARAMETERS OPTIONAL PARAMETERS
------------------- -------------------
db_file <file> db_file <file>
...@@ -47,9 +57,6 @@ db_file <file> ...@@ -47,9 +57,6 @@ db_file <file>
log_file <file> log_file <file>
This specifies where the log file should be located. The special value "syslog" makes MPD use the local syslog daemon. This specifies where the log file should be located. The special value "syslog" makes MPD use the local syslog daemon.
OPTIONAL PARAMETERS
-------------------
sticker_file <file> sticker_file <file>
The location of the sticker database. This is a database which manages The location of the sticker database. This is a database which manages
dynamic information attached to songs. dynamic information attached to songs.
...@@ -83,7 +90,7 @@ user <username> ...@@ -83,7 +90,7 @@ user <username>
port <port> port <port>
This specifies the port that mpd listens on. The default is 6600. This specifies the port that mpd listens on. The default is 6600.
log_level <default, secure, or verbose> log_level <level>
Suppress all messages below the given threshold. The following Suppress all messages below the given threshold. The following
log levels are available: log levels are available:
...@@ -190,8 +197,8 @@ mixer_type <hardware, software or none> ...@@ -190,8 +197,8 @@ mixer_type <hardware, software or none>
FILES FILES
----- -----
:file:`~/.mpdconf` :file:`$XDG_CONFIG_HOME/mpd/mpd.conf`
User configuration file. User configuration file (usually :file:`~/.config/mpd/mpd.conf`).
:file:`/etc/mpd.conf` :file:`/etc/mpd.conf`
Global configuration file. Global configuration file.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment