mirror of https://github.com/winsw/winsw
Use valid XML
parent
de19678bc5
commit
427abde529
|
@ -114,6 +114,7 @@ The `<arguments>` element specifies the arguments to be passed to the executable
|
||||||
arg2
|
arg2
|
||||||
arg3
|
arg3
|
||||||
</arguments>
|
</arguments>
|
||||||
|
```
|
||||||
|
|
||||||
### stopargument/stopexecutable
|
### stopargument/stopexecutable
|
||||||
|
|
||||||
|
@ -135,20 +136,38 @@ When you use the `<stoparguments>`, you must use `<startarguments>` instead of `
|
||||||
### Additional commands
|
### Additional commands
|
||||||
|
|
||||||
```xml
|
```xml
|
||||||
<prestart|poststart|prestop|poststop>
|
<prestart>
|
||||||
<executable></executable>
|
<executable></executable>
|
||||||
<arguments></arguments>
|
<arguments></arguments>
|
||||||
<stdoutPath></stdoutPath>
|
<stdoutPath></stdoutPath>
|
||||||
<stderrPath></stderrPath>
|
<stderrPath></stderrPath>
|
||||||
</prestart|poststart|prestop|poststop>
|
</prestart>
|
||||||
```
|
```
|
||||||
|
|
||||||
The pre-start command is executed when the service is starting and before the main process is started.
|
The pre-start command is executed when the service is starting and before the main process is started.
|
||||||
|
|
||||||
|
```xml
|
||||||
|
<poststart>
|
||||||
|
<!-- ... -->
|
||||||
|
</poststart>
|
||||||
|
```
|
||||||
|
|
||||||
The post-start command is executed when the service is starting 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.
|
||||||
|
|
||||||
|
```xml
|
||||||
|
<prestop>
|
||||||
|
<!-- ... -->
|
||||||
|
</prestop>
|
||||||
|
```
|
||||||
|
|
||||||
The pre-stop command is executed when the service is stopping and before the main process is stopped.
|
The pre-stop command is executed when the service is stopping and before the main process is stopped.
|
||||||
|
|
||||||
|
```xml
|
||||||
|
<poststop>
|
||||||
|
<!-- ... -->
|
||||||
|
</poststop>
|
||||||
|
```
|
||||||
|
|
||||||
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.
|
`stdoutPath` specifies the path to redirect the standard output to.
|
||||||
|
|
Loading…
Reference in New Issue