mirror of https://github.com/winsw/winsw
Add `stdoutPath`/`stderrPath`
parent
d883799b19
commit
cd9958b87c
|
@ -133,6 +133,8 @@ When you use the `<stoparguments>`, you must use `<startarguments>` instead of `
|
|||
<prestart|poststart|prestop|poststop>
|
||||
<executable></executable>
|
||||
<arguments></arguments>
|
||||
<stdoutPath></stdoutPath>
|
||||
<stderrPath></stderrPath>
|
||||
</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.
|
||||
|
||||
`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
|
||||
|
||||
```xml
|
||||
|
|
Loading…
Reference in New Issue