Use valid XML

pull/608/head
Next Turn 2020-08-06 17:43:33 +08:00 committed by GitHub
parent de19678bc5
commit 427abde529
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 2 deletions

View File

@ -114,6 +114,7 @@ The `<arguments>` element specifies the arguments to be passed to the executable
arg2
arg3
</arguments>
```
### stopargument/stopexecutable
@ -135,20 +136,38 @@ When you use the `<stoparguments>`, you must use `<startarguments>` instead of `
### Additional commands
```xml
<prestart|poststart|prestop|poststop>
<prestart>
<executable></executable>
<arguments></arguments>
<stdoutPath></stdoutPath>
<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.
```xml
<poststart>
<!-- ... -->
</poststart>
```
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.
```xml
<poststop>
<!-- ... -->
</poststop>
```
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.