1 <?xml version='1.0' encoding='UTF-8'?>
5 -''-param man.charmap.use.subset "0" \
6 -''-param make.year.ranges "1" \
7 -''-param make.single.year.ranges "1" \
8 /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl \
11 A manual page <package>.<section> will be generated. You may view the
12 manual page with: nroff -man <package>.<section> | less'. A typical entry
13 in a Makefile or Makefile.am is:
15 DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
16 XP = xsltproc -''-nonet -''-param man.charmap.use.subset "0"
18 manpage.1: manpage.xml
21 The xsltproc binary is found in the xsltproc package. The XSL files are in
22 docbook-xsl. A description of the parameters you can use can be found in the
23 docbook-xsl-doc-* packages. Please remember that if you create the nroff
24 version in one of the debian/rules file targets (such as build), you will need
25 to include xsltproc and docbook-xsl in your Build-Depends control field.
26 Alternatively use the xmlto command/package. That will also automatically
27 pull in xsltproc and docbook-xsl.
29 Notes for using docbook2x: docbook2x-man does not automatically create the
30 AUTHOR(S) and COPYRIGHT sections. In this case, please add them manually as
31 <refsect1> ... </refsect1>.
33 To disable the automatic creation of the AUTHOR(S) and COPYRIGHT sections
34 read /usr/share/doc/docbook-xsl/doc/manpages/authors.html. This file can be
35 found in the docbook-xsl-doc-html package.
37 Validation can be done using: `xmllint -''-noout -''-valid manpage.xml`
39 General documentation about man-pages and man-page-formatting:
40 man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
45 <!ENTITY dhsection "1">
46 <!ENTITY dhpackage "mpd-sima">
47 <!ENTITY dhutils "mpd-sima">
51 <refentry xmlns="http://docbook.org/ns/docbook"
52 xmlns:xi="http://www.w3.org/2001/XInclude" version="5.0">
53 <xi:include href="info.xml" />
55 <refentrytitle>&dhutils;</refentrytitle>
56 <manvolnum>&dhsection;</manvolnum>
59 <refname>&dhpackage;</refname>
60 <refpurpose>&dhpackage; will try to maintain some titles ahead in the queue following different policies.</refpurpose>
64 <command>&dhpackage;</command>
65 <arg choice="opt"><option>--daemon</option></arg>
66 <arg choice="opt"><option>--config=</option><replaceable class="option">conf_file</replaceable></arg>
67 <arg choice="opt"><option>--var-dir=</option><replaceable class="option">var_directory</replaceable></arg>
68 <arg choice="opt"><option>--pid=</option><replaceable class="option">pid_file</replaceable></arg>
69 <arg choice="opt"><option>--log=</option><replaceable class="option">log_file</replaceable></arg>
70 <arg choice="opt"><option>--log-level=</option><replaceable class="option">log_level</replaceable></arg>
71 <arg choice="opt"><option>--host=</option><replaceable class="option">mpd_host</replaceable></arg>
72 <arg choice="opt"><option>--mpd_port=</option><replaceable class="option">mpd_port</replaceable></arg>
75 <command>&dhpackage;</command>
76 <arg choice="plain">--create-db</arg>
77 <arg choice="opt"><option>--var-dir=</option><replaceable class="option">var_directory</replaceable></arg>
80 <command>&dhpackage;</command>
81 <arg choice="plain">--generate-config</arg>
82 <arg choice="opt"><option>…</option></arg>
85 <command>&dhpackage;</command>
86 <!-- Normally the help and version options make the programs stop
87 right after outputting the requested information. -->
88 <group choice="plain">
91 <arg choice="plain"><option>-h</option></arg>
92 <arg choice="plain"><option>--help</option></arg>
94 <arg choice="plain"><option>--version</option></arg>
99 <refsect1 id="description">
100 <title>DESCRIPTION</title>
101 <para>This manual page documents briefly the
102 <command>&dhpackage;</command> commands.</para>
103 <para>At start up default configuration is first overridden by user
104 configuration in mpd_sima.cfg (see <xref linkend="files"/>) and finally
105 command lines options are honored. For instance you can override
106 default MPD_HOST set in defaults (localhost) or in your configuration
107 file with <command>-S my_mpd_server</command> option. For default
108 configuration see <xref linkend="configuration"/>. See also environment
109 variables special case for MPD host and port in <xref linkend="environment"/>.
112 <refsect1 id="example">
113 <title>EXAMPLE</title>
114 <refsect2 id="daemon">
115 <title>Launch as a system service (dæmon).</title>
116 <para>Here follows an example on how to launch &dhpackage; as a service on your system, not attach to regular user configuration/database.</para>
117 <para><command>&dhpackage; --daemon --conf=/etc/mpd_sima.cfg --var-dir=/var/cache/mpd-sima/ --pid=/run/mpd-sima.pid --log=/var/log/mpd-sima.log</command></para>
119 <refsect2 id="user_land">
120 <title>Launch in user land</title>
121 <para>Launching &dhpackage; from/whithin your user account is easy, you can simply call <command>&dhpackage;</command> from your shell or one of the following command:</para>
122 <para>Background execution (dæmonise), log in the specified file, save pid:</para>
123 <para><command>&dhpackage; --daemon --pid=$HOME/var/run/mpd-sima.pid --log=$HOME/var/log/mpd-sima.log</command></para>
124 <para>Foreground execution, connect <emphasis>my.mpd.server.org</emphasis>, log to std(out|err):</para>
125 <para><command>&dhpackage; --host=my.mpd.server.org</command></para>
128 <refsect1 id="options">
129 <title>OPTIONS</title>
130 <para>The program follows the usual GNU command line syntax,
131 with long options starting with two dashes (`-'). A summary of
132 options is included below.</para>
134 <!-- Use the variablelist.term.separator and the
135 variablelist.term.break.after parameters to
136 control the term elements. -->
137 <varlistentry> <!-- help -->
138 <term><option>-h</option></term>
139 <term><option>--help</option></term>
141 <para>Print help and exit.</para>
144 <varlistentry> <!-- version -->
145 <term><option>--version</option></term>
147 <para>Print version and exit.</para>
150 <varlistentry> <!-- daemon -->
151 <term><option>--daemon</option></term>
153 <para>Start as a daemon. Log redirected to /dev/null, usually setting <option>--log</option> and <option>--pid</option> options in daemon mode are a good idea to monitor/stop the process.</para>
156 <varlistentry> <!-- pid_file -->
157 <term><option>-p <replaceable class="parameter">pid_file</replaceable></option></term>
158 <term><option>--pid=<replaceable class="parameter">pid_file</replaceable></option></term>
160 <para>Use the specific file <replaceable>pid_file</replaceable> to store pid to.<sbr />Default is not to store pid info.</para>
163 <varlistentry> <!-- log -->
164 <term><option>-l <replaceable class="parameter">log_file</replaceable></option></term>
165 <term><option>--log=<replaceable class="parameter">log_file</replaceable></option></term>
167 <para>Use the specific file <replaceable>log_file</replaceable> to log messages to.<sbr />Default is to log to stdout/stderr.</para>
170 <varlistentry> <!-- log-level -->
171 <term><option>-v <replaceable class="parameter">log_level</replaceable></option></term>
172 <term><option>--log-level=<replaceable class="parameter">log_level</replaceable></option></term>
174 <para>Verbosity in [debug,info,warning,error].<sbr />Default is to log info messages.</para>
177 <varlistentry><!-- config -->
178 <term><option>-c <replaceable class="parameter">conf_file</replaceable></option></term>
179 <term><option>--config=<replaceable class="parameter">conf_file</replaceable></option></term>
181 <para>Use the specific file <replaceable>conf_file</replaceable> to set up
182 configuration instead of looking for the default user
183 configuration file.<sbr />Default is to look for
184 <envar>$XDG_CONFIG_HOME/mpd_sima/mpd_sima.cfg</envar>.<sbr />
185 CLI option overrides any equivalent mentioned in configuration file, ie. launching &dhutils; with '<option>--port</option>' CLI option will ignore port setting in configuration file.<sbr />
186 For more details on configuration file cf.
187 <citerefentry><refentrytitle>mpd_sima.cfg</refentrytitle>
188 <manvolnum>5</manvolnum></citerefentry>, see also <xref linkend="files"/>.<sbr />
192 <varlistentry> <!-- var-dir -->
193 <term><option>--var-dir=<replaceable class="parameter">var_directory</replaceable></option></term>
195 <para>Use the specific path <replaceable>var_directory</replaceable> to look for (or create) var files (ie. database) instead of looking at the default user data location.<sbr />Default is to look in <envar>$XDG_DATA_HOME/mpd_sima/</envar>. Concerning <envar>$XDG_DATA_HOME</envar> see also <xref linkend="files"/></para>
198 <varlistentry> <!-- generate-config -->
199 <term><option>--generate-config</option></term>
201 <para>Generate a sample configuration file according to the current configuration. You can put other options with this one to get them in the generated configuration.</para>
204 <varlistentry> <!-- create-db -->
205 <term><option>--create-db</option></term>
207 <para>Create the database and exit. Uses folder specified with <option>--var-dir</option> or default directory.<sbr />Default is to use <envar>$XDG_DATA_HOME/mpd_sima/</envar>. Concerning <envar>$XDG_DATA_HOME</envar> see also <xref linkend="files"/></para>
210 <varlistentry><!-- host -->
211 <term><option>-S <replaceable class="parameter">mpd_host</replaceable></option></term>
212 <term><option>--host=<replaceable class="parameter">mpd_host</replaceable></option></term>
214 <para>Use the specific host <replaceable>mpd_host</replaceable> as MPD server.<sbr /><replaceable>mpd_host</replaceable> can be an <acronym>IP</acronym> or a fully qualified domain name as long as your system can resolve it. This overrides <envar>MPD_HOST</envar> environment variable.<sbr />Default is <emphasis>localhost</emphasis>.</para>
215 <para>See also <xref linkend="environment"/>.</para>
218 <varlistentry><!-- port -->
219 <term><option>-P <replaceable class="parameter">mpd_port</replaceable></option></term>
220 <term><option>--port=<replaceable class="parameter">mpd_port</replaceable></option></term>
222 <para>Use the specific port number <replaceable>mpd_port</replaceable> on MPD server. This overrides <envar>MPD_PORT</envar> environment variable.<sbr />Default is <emphasis>6600</emphasis>.</para>
223 <para>See also <xref linkend="environment"/></para>
228 <xi:include href="files.xml" />
229 <refsect1 id="environment">
230 <title>ENVIRONMENT</title>
233 <term><envar>MPD_HOST</envar>, <envar>MPD_PORT</envar></term>
235 <para>&dhutils; will look for <envar>MPD_HOST</envar> and
236 <envar>MPD_PORT</envar> to override built-in configuration
237 (set to "localhost:6600").</para>
238 <para>&dhutils; expects <envar>MPD_HOST</envar> syntax as documented in mpc manual,
239 cf. <citerefentry><refentrytitle>mpc</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
240 <sbr/>To use a password, provide a value of the form "password@host".
245 <term><envar>HTTP_PROXY</envar>, <envar>HTTPS_PROXY</envar></term>
247 <para>&dhutils; honors <envar>HTTP_PROXY</envar> environment variables.</para>
252 <refsect1 id="configuration">
253 <title>CONFIGURATION</title>
256 <term><filename>mpd_sima.cfg</filename></term>
258 <para><filename>mpd_sima.cfg</filename> is read if present.
259 Otherwise built-in defaults are used. An example should be
260 provided in the tarball within
261 <filename>doc/examples/</filename>. On Debian
262 system please look in
263 <filename>/usr/share/doc/&dhpackage;</filename>.</para>
267 <term>DEFAULTS</term>
269 <para>Default is to look for MPD server at localhost:6600 (or MPD_HOST/MPD_PORT env. var. if set).</para>
270 <para>The get the defaults as detected by &dhpackage; on your system you can run &dhpackage; to print the config:</para>
271 <para><command>&dhpackage; --generate-config</command></para>
275 <para>For details about mpd_sima.cfg refer to the manual
277 <refentrytitle>mpd_sima.cfg</refentrytitle>
278 <manvolnum>5</manvolnum>
282 <xi:include href="feedback.xml" />
283 <xi:include href="seealso.xml" />