diff --git a/doc/xmlConfigFile.md b/doc/xmlConfigFile.md index 345a014..f5536e7 100644 --- a/doc/xmlConfigFile.md +++ b/doc/xmlConfigFile.md @@ -94,33 +94,27 @@ See the [Logging and error reporting](loggingAndErrorReporting.md) page for more ### Arguments -`` element specifies the arguments to be passed to the executable. -Winsw will quote each argument if necessary, so do not put quotes in `` to avoid double quotation. +`` element specifies the arguments to be passed to the executable. ```xml -arg1 -arg2 -arg3 +arg1 arg2 arg3 ``` -`` element can be used instead to specify the whole command line in a single element. - ### stopargument/stopexecutable ~~When the service is requested to stop, winsw simply calls [TerminateProcess function](https://docs.microsoft.com/windows/win32/api/processthreadsapi/nf-processthreadsapi-terminateprocess) to kill the service instantly.~~ -However, if ``/`` elements are present, winsw will instead launch another process of `` (or `` if that's specified) with the specified arguments, and expects that to initiate the graceful shutdown of the service process. +However, if `` element is present, winsw will instead launch another process of `` (or `` if that's specified) with the specified arguments, and expects that to initiate the graceful shutdown of the service process. Winsw will then wait for the two processes to exit on its own, before reporting back to Windows that the service has terminated. -When you use the ``/``, you must use ``/`` instead of ``. See the complete example below: +When you use the ``, you must use `` instead of ``. See the complete example below: ```xml catalina.sh -jpda -run +jpda run catalina.sh -stop +stop ``` ### stoptimeout