3 .\" Author: Jack Kaliko <kaliko@azylum.org>
4 .\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
6 .\" Manual: mpd-sima 0.12.0 User Manual
10 .TH "MPD\-SIMA" "1" "06/12/2014" "mpd-sima" "mpd-sima 0.12.0 User Manual"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 mpd-sima \- mpd\-sima will try to maintain some titles ahead in the queue following different policies\&.
33 .HP \w'\fBmpd\-sima\fR\ 'u
34 \fBmpd\-sima\fR [\fB\-\-daemon\fR] [\fB\-\-config=\fR\fIconf_file\fR] [\fB\-\-var_dir=\fR\fIvar_directory\fR] [\fB\-\-pid=\fR\fIpid_file\fR] [\fB\-\-log=\fR\fIlog_file\fR] [\fB\-\-log\-level=\fR\fIlog_level\fR] [\fB\-\-host=\fR\fImpd_host\fR] [\fB\-\-mpd_port=\fR\fImpd_port\fR]
35 .HP \w'\fBmpd\-sima\fR\ 'u
36 \fBmpd\-sima\fR [\fB\-\-var_dir=\fR\fIvar_directory\fR] [\fB\-\-create\-db>\fR]
37 .HP \w'\fBmpd\-sima\fR\ 'u
38 \fBmpd\-sima\fR [{\fB\-h\fR\ |\ \fB\-\-help\fR} | \fB\-\-version\fR]
41 This manual page documents briefly the
45 At start up default configuration is first overridden by user configuration in mpd_sima\&.cfg (see
46 the section called \(lqFILES\(rq) and finally command lines options are honored\&. For instance you can override default MPD_HOST set in defaults (localhost) or in your configuration file with
47 \fB\-S\ \&my_mpd_server\fR
48 option\&. For default configuration see
49 the section called \(lqCONFIGURATION\(rq\&. See also environment variables special case for MPD host and port in
50 the section called \(lqENVIRONMENT\(rq\&.
52 .SS "Launch as a system service (d\(aemon)\&."
54 Here follows an example on how to launch mpd\-sima as a service on your system, not attach to regular user configuration/database\&.
56 \fBmpd\-sima \-\-daemon \-\-conf=/etc/mpd_sima\&.cfg \-\-var_dir=/var/cache/mpd\-sima/ \-\-pid=/run/mpd\-sima\&.pid \-\-log=/var/log/mpd\-sima\&.log\fR
57 .SS "Launch in user land"
59 Launching mpd\-sima from/whithin your user account is easy, you can simply call
61 from your shell or one of the following command:
63 Background execution (d\(aemonise), log in the specified file, save pid:
65 \fBmpd\-sima \-\-daemon \-\-pid=$HOME/var/run/mpd\-sima\&.pid \-\-log=$HOME/var/log/mpd\-sima\&.log\fR
67 Foreground execution, connect
68 \fImy\&.mpd\&.server\&.org\fR, log to std(out|err):
70 \fBmpd\-sima \-\-host=my\&.mpd\&.server\&.org\fR
73 The program follows the usual GNU command line syntax, with long options starting with two dashes (`\-\*(Aq)\&. A summary of options is included below\&.
75 \fB\-h\fR, \fB\-\-help\fR
77 Print help and exit\&.
82 Print version and exit\&.
87 Start as a daemon\&. Log redirected to /dev/null, usually setting
91 options in daemon mode are a good idea to monitor/stop the process\&.
94 \fB\-p \fR\fB\fIpid_file\fR\fR, \fB\-\-pid=\fR\fB\fIpid_file\fR\fR
100 Default is not to store pid info\&.
103 \fB\-l \fR\fB\fIlog_file\fR\fR, \fB\-\-log=\fR\fB\fIlog_file\fR\fR
105 Use the specific file
107 to log messages to\&.
109 Default is to log to stdout/stderr\&.
112 \fB\-v \fR\fB\fIlog_level\fR\fR, \fB\-\-log\-level=\fR\fB\fIlog_level\fR\fR
114 Verbosity in [debug,info,warning,error]\&.
116 Default is to log info messages\&.
119 \fB\-c \fR\fB\fIconf_file\fR\fR, \fB\-\-config=\fR\fB\fIconf_file\fR\fR
121 Use the specific file
123 to set up configuration instead of looking for the default user configuration file\&.
125 Default is to look for
126 \fB$XDG_CONFIG_HOME/mpd_sima/mpd_sima\&.cfg\fR\&.
129 CLI option overrides any equivalent mentioned in configuration file, ie\&. launching mpd\-sima with \*(Aq\fB\-\-port\fR\*(Aq CLI option will ignore port setting in configuration file\&.
132 For more details on configuration file cf\&.
133 \fBmpd_sima.cfg\fR(5), see also
134 the section called \(lqFILES\(rq\&.
139 \fB\-\-var_dir=\fR\fB\fIvar_directory\fR\fR
141 Use the specific path
143 to look for (or create) var files (ie\&. database) instead of looking at the default user data location\&.
145 Default is to look in
146 \fB$XDG_DATA_HOME/mpd_sima/\fR\&. Concerning
149 the section called \(lqFILES\(rq
154 Create the database and exit\&. Uses folder specified with
156 or default directory\&.
159 \fB$XDG_DATA_HOME/mpd_sima/\fR\&. Concerning
162 the section called \(lqFILES\(rq
165 \fB\-S \fR\fB\fImpd_host\fR\fR, \fB\-\-host=\fR\fB\fImpd_host\fR\fR
167 Use the specific host
174 or a fully qualified domain name as long as your system can resolve it\&. This overrides
176 environment variable\&.
182 the section called \(lqENVIRONMENT\(rq\&.
185 \fB\-P \fR\fB\fImpd_port\fR\fR, \fB\-\-port=\fR\fB\fImpd_port\fR\fR
187 Use the specific port number
189 on MPD server\&. This overrides
191 environment variable\&.
197 the section called \(lqENVIRONMENT\(rq
201 ${XDG_CONFIG_HOME}/mpd_sima/mpd_sima\&.cfg
203 Configuration file\&.
206 ${XDG_DATA_HOME}/mpd_sima/sima\&.db
211 ${XDG_DATA_HOME}/mpd_sima/WEB_SERVICE/
213 Persistent http cache\&.
219 ${HOME}/\&.local/share
221 \fBXDG_CONFIG_HOME\fR
225 You may override them using command line option
231 \fBMPD_HOST\fR, \fBMPD_PORT\fR
233 mpd\-sima will look for
237 to override built\-in configuration (set to "localhost:6600")\&.
241 syntax as documented in mpc manual, cf\&.
245 To use a password, provide a value of the form "password@host"\&.
252 is read if present\&. Otherwise built\-in defaults are used\&. An example should be provided in the tarball within
253 doc/examples/\&. On Debian system please look in
254 /usr/share/doc/mpd\-sima\&.
259 Default is to look for MPD server at localhost:6600 (or MPD_HOST/MPD_PORT env\&. var\&. if set)\&.
261 The default behavior is to add one track, this track is to be chosen among titles from artists similar to the artist of the currently played track\&. MPD_sima will add one track when the unplayed queue is one track long\&.
263 To change these defaults, use the configuration file
267 For details about mpd_sima\&.cfg refer to the manual
268 \fBmpd_sima.cfg\fR(5)
271 The maintainer would be more than happy to ear from you, don\*(Aqt hesitate to send feedback,
272 \m[blue]\fB\%http://kaliko.me/id/\fR\m[]\&.
275 users are welcome to join the dedicated chat room at
276 \m[blue]\fBkaliko\&.me@conf\&.azylum\&.org\fR\m[]\&.
282 /usr/share/doc/mpd\-sima/
285 \fBJack Kaliko\fR <\&kaliko@azylum\&.org\&>
287 Wrote this man page and is currently leading MPD_sima project\&.
291 Copyright \(co 2009-2014 Jack Kaliko
294 This manual page was written for the Debian system (and may be used by others)\&.
296 Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation\&.
298 On Debian systems, the complete text of the GNU General Public License can be found in
299 /usr/share/common\-licenses/GPL\&.