docs: document the "-n" command line option
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
2f8a1567a8
commit
f753263c60
|
@ -110,7 +110,7 @@ Now you may install a client, such as
|
||||||
The configuration and log file paths may be specified via the command
|
The configuration and log file paths may be specified via the command
|
||||||
line.
|
line.
|
||||||
```
|
```
|
||||||
usage: moonraker.py [-h] [-c <configfile>] [-l <logfile>]
|
usage: moonraker.py [-h] [-c <configfile>] [-l <logfile>] [-n]
|
||||||
|
|
||||||
Moonraker - Klipper API Server
|
Moonraker - Klipper API Server
|
||||||
|
|
||||||
|
@ -120,14 +120,26 @@ optional arguments:
|
||||||
Location of moonraker configuration file
|
Location of moonraker configuration file
|
||||||
-l <logfile>, --logfile <logfile>
|
-l <logfile>, --logfile <logfile>
|
||||||
log file name and location
|
log file name and location
|
||||||
|
-n, --nologfile disable logging to a file
|
||||||
```
|
```
|
||||||
|
|
||||||
The default configuration is:
|
The default configuration is:
|
||||||
- config file - `~/moonraker.conf`
|
- config file path- `~/moonraker.conf`
|
||||||
- log file - `/tmp/moonraker.log`
|
- log file path - `/tmp/moonraker.log`
|
||||||
|
- logging to a file is enabled
|
||||||
|
|
||||||
It is recommended to use the defaults, however one may change these
|
If one needs to start moonraker without generating a log file, the
|
||||||
arguments by editing `/etc/default/moonraker`.
|
'-n' option may be used, for example:
|
||||||
|
```
|
||||||
|
~/moonraker-env/bin/python ~/moonraker/moonraker/moonraker.py -n -c /path/to/moonraker.conf
|
||||||
|
```
|
||||||
|
In general it is not recommended to install moonraker with this option.
|
||||||
|
While moonraker will still log to stdout, all requests for support must
|
||||||
|
be accompanied by moonraker.log.
|
||||||
|
|
||||||
|
These options may be changed by editing
|
||||||
|
`/etc/systemd/system/moonraker.service`. The `install-moonraker.sh` script
|
||||||
|
may also be used to modify the config file location.
|
||||||
|
|
||||||
## Prerequisites (Klipper Configuration)
|
## Prerequisites (Klipper Configuration)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue