From f5bbb2b81987be9750ccec79b15dda193ef16b11 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Tue, 16 Dec 2008 21:31:52 +0100
Subject: [PATCH] man: document Unix domain socket configuration in the manual

Additionally, add an example in mpdconf.example.
---
 doc/mpd.conf.5      | 3 +++
 doc/mpdconf.example | 4 ++++
 2 files changed, 7 insertions(+)

diff --git a/doc/mpd.conf.5 b/doc/mpd.conf.5
index 52d7714cd..31b105c8d 100644
--- a/doc/mpd.conf.5
+++ b/doc/mpd.conf.5
@@ -72,6 +72,9 @@ This specifies the user that mpd will run as, if set.
 This specifies which address mpd binds to and listens on.  Multiple
 bind_to_address parameters may be specified.  The default is "any", which binds
 to all available addresses.
+
+To bind to a Unix domain socket, specify an absolute path.  For a
+system-wide MPD, we suggest the path "\fB/var/run/mpd/socket\fP".
 .TP
 .B port <port>
 This specifies the port that mpd listens on.  The default is 6600.
diff --git a/doc/mpdconf.example b/doc/mpdconf.example
index 808c035a7..83109383e 100644
--- a/doc/mpdconf.example
+++ b/doc/mpdconf.example
@@ -42,6 +42,10 @@ error_file                      "~/.mpd/mpd.error"
 #bind_to_address                 "any"
 #port                            "6600"
 #
+# Bind to a Unix domain socket:
+#
+#bind_to_address                 "/var/run/mpd/socket"
+#
 # Controls the amount of information that is logged.  Can be
 # "default", "secure", or "verbose".
 #