Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Wh1isper committed Aug 29, 2023
1 parent 08bb880 commit f45728d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,10 @@ duectl generate-dynamic-config --help
duectl generate-config
```

更进一步的,后台运行可以使用`duectl-daemon start`命令,这将会在后台运行一个守护进程,你可以使用`duectl-daemon stop`来停止它
更进一步的,后台运行可以使用 `duectl-daemon start`命令,这将会在后台运行一个守护进程,你可以使用 `duectl-daemon stop`来停止它

```bash
$ duectl-daemon --help

duectl-daemon --help
Usage: duectl-daemon [OPTIONS] COMMAND [ARGS]...

Options:
Expand Down
6 changes: 3 additions & 3 deletions duetector/cli/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
@click.option(
"--rotate_log",
default=True,
help="Rotate log file when daemon started, default: True",
help="Rotate log file when process started, default: True",
)
@click.pass_context
def start(ctx, workdir, loglevel, rotate_log):
"""
Start a daemon of command `duectl start`,
Start a background process of command `duectl start`,
All arguments after `--` will be passed to `duectl start`,
e.g. `duectl-daemon start -- --config /path/to/config`
"""
Expand All @@ -36,7 +36,7 @@ def start(ctx, workdir, loglevel, rotate_log):
f"Start duetector daemon with command: {' '.join(cmd)}, \n"
f"workdir: {workdir}, \n"
f"loglevel: {loglevel}, \n"
f"rotate_log: {rotate_log}\n"
f"rotate_log: {rotate_log}"
)
Daemon(
cmd=cmd,
Expand Down

0 comments on commit f45728d

Please sign in to comment.