Add `stdoutPath`/`stderrPath`

pull/608/head
Next Turn 2020-08-06 15:40:35 +08:00 committed by GitHub
parent d883799b19
commit cd9958b87c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -133,6 +133,8 @@ When you use the `<stoparguments>`, you must use `<startarguments>` instead of `
<prestart|poststart|prestop|poststop> <prestart|poststart|prestop|poststop>
<executable></executable> <executable></executable>
<arguments></arguments> <arguments></arguments>
<stdoutPath></stdoutPath>
<stderrPath></stderrPath>
</prestart|poststart|prestop|poststop> </prestart|poststart|prestop|poststop>
``` ```
@ -144,6 +146,12 @@ The pre-stop command is executed when the service is stopping and before the mai
The post-stop command is executed when the service is stopping and after the main process is stopped. The post-stop command is executed when the service is stopping and after the main process is stopped.
`stdoutPath` specifies the path to redirect the standard output to.
`stderrPath` specifies the path to redirect the standard error output to.
Specify `NUL` in `stdoutPath` or `stderrPath` to dispose of the corresponding stream.
### Preshutdown ### Preshutdown
```xml ```xml