From 5ecf6e9379a9881150b23d7701eccbcc837c28e0 Mon Sep 17 00:00:00 2001 From: Qiang Huang Date: Tue, 24 Nov 2015 18:07:12 +0800 Subject: [PATCH] Clarify the meaning of hook elements Signed-off-by: Qiang Huang --- runtime-config.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/runtime-config.md b/runtime-config.md index 3313a0a0a..436912209 100644 --- a/runtime-config.md +++ b/runtime-config.md @@ -43,7 +43,7 @@ If a hook returns a non-zero exit code, then an error is logged and the remainin "prestart": [ { "path": "/usr/bin/fix-mounts", - "args": ["arg1", "arg2"], + "args": ["fix-mounts", "arg1", "arg2"], "env": [ "key1=value1"] }, { @@ -58,7 +58,7 @@ If a hook returns a non-zero exit code, then an error is logged and the remainin "poststop": [ { "path": "/usr/sbin/cleanup.sh", - "args": ["-f"] + "args": ["cleanup.sh", "-f"] } ] } @@ -66,6 +66,7 @@ If a hook returns a non-zero exit code, then an error is logged and the remainin `path` is required for a hook. `args` and `env` are optional. +The meanings are the same as `Path`, `Args` and `Env` in [golang Cmd](https://golang.org/pkg/os/exec/#Cmd). ## Mount Configuration