-
-
Notifications
You must be signed in to change notification settings - Fork 33
Program Options and Command
Naim A edited this page Jan 29, 2016
·
1 revision
The program use boost-program-options for command line and configuration parsing.
UDPT command is as follows:
$ ./udpt [options]
Options:
- --help, -h: Produces a help message.
- --all-help: Displays all configuration options.
- --test, -t: Test the configuration file syntax.
- --config, -c: Sets the configuration file path. default is
/etc/udpt.conf
. - --interactive, -i: (not for Windows) Doesn't start as a daemon.
Configuration files are ini style files. Every section has key/value pairs.
-
driver
: The DB section sets the database adapter that will be used.sqlite3
is currently the only supported one, and it's set by default. -
param
: Parameter to pass to the database adapter. For sqlite3 this is the file the database should be stored in. You can set:memory:
for in-memory database. default path is/var/lib/udpt.db
.
-
is_dynamic
: Sets if the tracker should run in dynamic mode. default is1
. -
port
: UDP port the tracker should listen on. default is6969
. -
threads
: Worker threads to run. default is5
. -
allow_remotes
: If set to true, clients can report IPs other than the ones they are behind. default is1
. -
allow_iana_ips
: Allows IANA reserved addresses to connect (192.168.0.0/16 for example). This value is good for testing/debugging, default is0
. -
announce_interval
: Number of seconds to tell clients to wait before sending another announce request. default is1800
. -
cleanup_interval
: Sets the interval (in seconds) to clean up the database. default is120
.
-
enable
: If this value is set to true, the tracker will run a HTTP RESTful server for controlling tracked torrents. default is0
. -
threads
: HTTP server threads, default is1
. -
port
: TCP port to listen on, default is6969
.
-
filename
: Path to log file. -
level
: Log level to record; values can bedebug
,warning
,info
orerror
. default iswarning
.
-
chdir
: The working directory to set when running as a daemon.