diff --git a/docs/xml-config-file.md b/docs/xml-config-file.md index f625988..a97b87a 100644 --- a/docs/xml-config-file.md +++ b/docs/xml-config-file.md @@ -138,12 +138,23 @@ When you use the ``, you must use `` 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 +false +3 min +``` + +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,