pikvm/pikvm#905: streamer start/stop hooks

This commit is contained in:
Maxim Devaev
2023-12-03 12:44:18 +02:00
parent b4b32a71e5
commit a1b8a077ee
2 changed files with 36 additions and 4 deletions

View File

@@ -473,9 +473,17 @@ def _get_config_scheme() -> dict:
"process_name_prefix": Option("kvmd/streamer"),
"pre_start_cmd": Option(["/bin/true", "pre-start"], type=valid_command),
"pre_start_cmd_remove": Option([], type=valid_options),
"pre_start_cmd_append": Option([], type=valid_options),
"cmd": Option(["/bin/true"], type=valid_command),
"cmd_remove": Option([], type=valid_options),
"cmd_append": Option([], type=valid_options),
"post_stop_cmd": Option(["/bin/true", "post-stop"], type=valid_command),
"post_stop_cmd_remove": Option([], type=valid_options),
"post_stop_cmd_append": Option([], type=valid_options),
},
"ocr": {