-
Notifications
You must be signed in to change notification settings - Fork 3
/
schema.json
70 lines (70 loc) · 2.61 KB
/
schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"$id": "https://raw.githubusercontent.com/roadrunner-server/service/refs/heads/master/schema.json",
"$schema": "https://json-schema.org/draft/2019-09/schema",
"description": "All the valid configuration parameters for the Service plugin for RoadRunner.",
"type": "object",
"title": "roadrunner-service",
"minProperties": 1,
"additionalProperties": false,
"patternProperties": {
"^[a-zA-Z0-9._-]+$": {
"type": "object",
"description": "The user-defined service.",
"additionalProperties": false,
"required": [
"command"
],
"properties": {
"command": {
"description": "The command the service should execute. This can be any executable instruction that RoadRunner has access to on the server.",
"type": "string",
"minLength": 1
},
"env": {
"type": "object",
"description": "Environment variables to pass to the service.",
"additionalProperties": false,
"minProperties": 1,
"patternProperties": {
"^[a-zA-Z0-9._-]+$": {
"type": "string"
}
}
},
"timeout_stop_sec": {
"description": "Timeout for the service stop operation. If it takes longer for this duration for the service to stop, it will be killed. Zero or empty defaults to 5.",
"type": "integer",
"minimum": 0,
"default": 5
},
"process_num": {
"description": "Number of copies (processes) to start per command execution.",
"type": "integer",
"minimum": 1,
"default": 1
},
"exec_timeout": {
"description": "The maximum duration the service is allowed to run before RR will kill it. Default/zero means unlimited.",
"type": "string",
"$ref": "https://raw.githubusercontent.com/roadrunner-server/roadrunner/refs/heads/master/schemas/config/3.0.schema.json#/definitions/Duration",
"default": "0s"
},
"remain_after_exit": {
"description": "Whether to restart the process if it exits, regardless of the exit code.",
"type": "boolean",
"default": false
},
"restart_sec": {
"description": "Number of seconds to wait before process restart. Default/zero means 30 seconds.",
"type": "integer",
"default": 30
},
"service_name_in_log": {
"description": "Whether to include the name of the service in logs (e.g. `service.some_service_1`).",
"type": "boolean",
"default": false
}
}
}
}
}