diff options
author | Maxim Devaev <[email protected]> | 2023-12-03 12:44:18 +0200 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2023-12-03 12:44:18 +0200 |
commit | a1b8a077ee1ae829e01aa5224196ce687adc9deb (patch) | |
tree | cd8232b8405ee503afe712c3e5ee0359c0ba530d /kvmd/apps/__init__.py | |
parent | b4b32a71e526aec1e60ead9ac2e78f98c3f4b8ec (diff) |
pikvm/pikvm#905: streamer start/stop hooks
Diffstat (limited to 'kvmd/apps/__init__.py')
-rw-r--r-- | kvmd/apps/__init__.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py index a0ee9bff..74adeaec 100644 --- a/kvmd/apps/__init__.py +++ b/kvmd/apps/__init__.py @@ -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": { |