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>
|
<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
|
||||||
|
|
Loading…
Reference in New Issue