From b4dbac24626881d4d3ea748cb5d37527ec51202c Mon Sep 17 00:00:00 2001 From: Next Turn <45985406+NextTurn@users.noreply.github.com> Date: Tue, 4 Aug 2020 14:36:01 +0800 Subject: [PATCH] Add preshutdown --- docs/xml-config-file.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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,