mirror of https://github.com/winsw/winsw
Add preshutdown
parent
1ac8fe1d4c
commit
b4dbac2462
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue