Add preshutdown

pull/608/head
Next Turn 2020-08-04 14:36:01 +08:00 committed by GitHub
parent 1ac8fe1d4c
commit b4dbac2462
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 1 deletions

View File

@ -138,12 +138,23 @@ When you use the `<stoparguments>`, you must use `<startarguments>` instead of `
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 post-start command is executed when the service is starting 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.
### Preshutdown
```xml
<preshutdown>false</preshutdown>
<preshutdownTimeout>3 min</preshutdown>
```
Gives the service more time to stop when the system is being shut down.
The system default preshutdown timeout is there minutes.
### stoptimeout
When the service is requested to stop, winsw first attempts to send a Ctrl+C signal,