Command line interface

Usage

The slowdown service can be controlled by a program called slowdown, which is located in the bin dir.

usage: bin/slowdown [-h] [-f FILE] [-u USER] [--home DIRECTORY]
                    [--root DIRECTORY] [--init] [-v | -vv | -q]

Options

-h, --help

Show help message

-f FILE, --file FILE

Config file, the default is /SERVER-HOME/etc/slowdown.conf

-u USER, --user USER

Server will running as the specified user, the default is the current user.

--home DIRECTORY

Home folder of the server.

--root DIRECTORY

The working directory.

--init

Convert the folder specified by the --home DIRECTORY option to the home folder of the server.

-v

Set debug level to logging.INFO .

-vv

Set debug level to logging.DEBUG .

-q

Do not print debug messages.

Note

The default value will be taken from the profile, but shall be overwritten by the command line arguments.

Examples

Start server and accept full debug messages:

$ bin/slowdown -vv

Start server as a specified user nobody:

$ sudo bin/slowdown -u nobody

Start server using a specified profile:

$ bin/slowdown -f /PATH/TO/profile.conf