1
<?xml version='1.0' encoding='ISO-8859-1'?>
2
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
3
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
6
<title>User commands</title>
7
<productname>MediaTomb</productname>
8
<productnumber>0.10.0</productnumber>
9
<date>2007-05-27</date>
10
<address>contact@mediatomb.cc</address>
12
<collab><collabname>Sergey Bostandzhyan</collabname></collab>
13
<collab><collabname>Leonhard Wimmer</collabname></collab>
17
<holder>Gena Batsyan</holder>
18
<holder>Sergey Bostandzhyan</holder>
21
<year>2006-2007</year>
22
<holder>Gena Batsyan</holder>
23
<holder>Sergey Bostandzhyan</holder>
24
<holder>Leonhard Wimmer</holder>
27
<para>This manual page is part of MediaTomb.</para>
28
<para>Permission is granted to copy, distribute and/or modify this document under
29
the terms of the <acronym>GNU</acronym> General Public License version 2 as published by the Free Software Foundation.</para>
33
<refentrytitle>MEDIATOMB</refentrytitle>
34
<manvolnum>1</manvolnum>
37
<refname>mediatomb</refname>
38
<refpurpose>UPnP MediaServer</refpurpose>
42
<command>mediatomb</command>
45
<option>-i <replaceable>IP address</replaceable>
50
<option>-e <replaceable>interface</replaceable>
55
<option>-p <replaceable>port</replaceable>
60
<option>-c <replaceable>config file</replaceable>
69
<option>-m <replaceable>home dir</replaceable>
74
<option>-f <replaceable>config dir</replaceable>
79
<option>-P <replaceable>PID file</replaceable>
84
<option>-u <replaceable>user</replaceable>
89
<option>-g <replaceable>group</replaceable>
94
<option>-a <replaceable>path</replaceable>
99
<option>-l <replaceable>logfile</replaceable>
110
<title>DESCRIPTION</title>
112
<para>This manual page describes the command line parameters for
113
MediaTomb. For a detailed documentation please see the README file which
114
is distributed with MediaTomb or visit http://mediatomb.cc/.</para>
117
<title>OPTIONS</title>
124
<option>--ip</option>
127
<para>The server will bind to the given IP address, currently we can not bind to
128
multiple interfaces so binding to 0.0.0.0 will not be possible.</para>
135
<option>--interface</option>
138
<para>The server will bind to the given network interface, currently we can only bind
139
to one interface at a time.</para>
146
<option>--port</option>
149
<para>Specify the server port that will be used for the web user interface, for
150
serving media and for UPnP requests, minimum allowed value is 49152. If this
151
option is omitted a default port will be chosen, however, in this case it is
152
possible that the port will change upon server restart.</para>
159
<option>--config</option>
162
<para>By default MediaTomb will search for a file named "config.xml" in the ~/.mediatomb directory. This option allows you to specify a config file by the
163
name and location of your choice. The file name must be absolute.</para>
170
<option>--daemon</option>
173
<para>Run the server in background, MediaTomb will shutdown on SIGTERM, SIGINT and
174
restart on SIGHUP.</para>
181
<option>--home</option>
184
<para>Specify an alternative home directory. By default MediaTomb will try to
185
retrieve the users home directory from the environment, then it will look for a
186
.mediatomb directory in users home. If .mediatomb was found we will try to find
187
the default configuration file (config.xml), if not found we will create both,
188
the .mediatomb directory and the default config file.</para>
190
<para>This option is useful in two cases: when the home directory can not be
191
retrieved from the environment (in this case you could also use -c to point
192
MediaTomb to your configuration file or when you want to create a new
193
configuration in a non standard location (for example, when setting up daemon
194
mode). In the latter case you can combine this parameter with the parameter
195
described in Section 5.6, "Config Directory"</para>
202
<option>--cfgdir</option>
205
<para>The default configuration directory is combined out of the users home and the
206
default that equals to .mediatomb, this option allows you to override the
207
default directory naming. This is useful when you want to setup the server in a
208
nonstandard location, but want that the default configuration to be written by
217
<option>--pidfile</option>
220
<para>Specify a file that will hold the server process ID, the filename must be
228
<option>--user</option>
231
<para>Run MediaTomb under the specified user name, this is especially useful in
232
combination with the daemon mode.</para>
239
<option>--group</option>
242
<para>Run MediaTomb under the specified group, this is especially useful in
243
combination with the daemon mode.</para>
250
<option>--add</option>
253
<para>Add the specified directory or file name to the database without UI
254
interaction. The path must be absolute, if path is a directory then it will be
255
added recursively. If path is a file, then only the given file will be
263
<option>--logfile</option>
266
<para>Do not output log messages to stdout, but redirect everything to a specified
274
<option>--help</option>
277
<para>Print a summary about the available command line options.</para>