Skip to content

Commit 772f073

Browse files
committed
Merge pull request #255 from hqhq/hq_clarify_hooks
Clarify the meaning of hook elements
2 parents 82cfe56 + 48049d2 commit 772f073

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

runtime-config.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ If a hook returns a non-zero exit code, then an error is logged and the remainin
4343
"prestart": [
4444
{
4545
"path": "/usr/bin/fix-mounts",
46-
"args": ["arg1", "arg2"],
46+
"args": ["fix-mounts", "arg1", "arg2"],
4747
"env": [ "key1=value1"]
4848
},
4949
{
@@ -58,14 +58,15 @@ If a hook returns a non-zero exit code, then an error is logged and the remainin
5858
"poststop": [
5959
{
6060
"path": "/usr/sbin/cleanup.sh",
61-
"args": ["-f"]
61+
"args": ["cleanup.sh", "-f"]
6262
}
6363
]
6464
}
6565
```
6666

6767
`path` is required for a hook.
6868
`args` and `env` are optional.
69+
The semantics are the same as `Path`, `Args` and `Env` in [golang Cmd](https://golang.org/pkg/os/exec/#Cmd).
6970

7071
## Mount Configuration
7172

0 commit comments

Comments
 (0)