Revise docs for 3.0.0-alpha.2 (#594)

* Update links

* Remove `<waithint>` and `<sleeptime>`

* Create cli-commands.md

* Update migrate-to-3-x.md

* Update the Usage section

* Fix broken link

* Add `--force` to `stop` and `restart`

* CAUTION

* WIP Add extra steps

* Split removals

* Update additional commands

* Update cli-commands.md

* Update README.md

* Update README.md

* NOTE

* Update copyright texts

* Temporarily skip failing test

* Suggest using command-line options
This commit is contained in:
Next Turn
2020-07-28 08:35:18 +08:00
committed by GitHub
parent 3ea68e2d20
commit 1b2365a99a
10 changed files with 299 additions and 94 deletions

View File

@@ -123,6 +123,23 @@ When you use the `<stopargument>`/`<stoparguments>`, you must use `<startargumen
<stopargument>stop</stopargument>
```
### Additional commands
```xml
<prestart|poststart|prestop|poststop>
<executable></executable>
<arguments></arguments>
</prestart|poststart|prestop|poststop>
```
The pre-start command is executed when the service is starting and before the main process is started.
The post-start command is executed when the service is running and after the main process is started.
The pre-stop command is executed when the service is stopping and before the main process is stopped.
The post-stop command is executed when the service is stopping and after the main process is stopped.
### stoptimeout
When the service is requested to stop, winsw first attempts to send a Ctrl+C signal,