Skip to content

Commit e1b2e61

Browse files
Merge pull request #764 from wking/strictly-positive-timeout
config: Require strictly-positive timeout values
2 parents 01ec62d + ecf7314 commit e1b2e61

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

config.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ Hooks allow for the configuration of custom actions related to the [lifecycle](r
357357
* **`args`** (array of strings, OPTIONAL) with the same semantics as [IEEE Std 1003.1-2001 `execv`'s *argv*][ieee-1003.1-2001-xsh-exec].
358358
* **`env`** (array of strings, OPTIONAL) with the same semantics as [IEEE Std 1003.1-2001's `environ`][ieee-1003.1-2001-xbd-c8.1].
359359
* **`timeout`** (int, OPTIONAL) is the number of seconds before aborting the hook.
360+
If set, `timeout` MUST be greater than zero.
360361
* **`poststart`** (array of objects, OPTIONAL) is an array of [post-start hooks](#poststart).
361362
Entries in the array have the same schema as pre-start entries.
362363
* **`poststop`** (array of objects, OPTIONAL) is an array of [post-stop hooks](#poststop).

schema/defs.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@
9191
"$ref": "#/definitions/Env"
9292
},
9393
"timeout": {
94-
"type": "integer"
94+
"type": "integer",
95+
"minimum": 1
9596
}
9697
},
9798
"required": [

0 commit comments

Comments
 (0)