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
-
-fFILE,--fileFILE¶ Config file, the default is
/SERVER-HOME/etc/slowdown.conf
-
-uUSER,--userUSER¶ Server will running as the specified user, the default is the current user.
-
--homeDIRECTORY¶ Home folder of the server.
-
--rootDIRECTORY¶ The working directory.
-
--init¶ Convert the folder specified by the
--home DIRECTORYoption 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