From 6b7cfd1e86403ed86a9c6c2411e8fea70b6990a4 Mon Sep 17 00:00:00 2001 From: e345 Date: Mon, 22 Sep 2025 13:53:50 +0800 Subject: [PATCH] Update action.py: correct docker kill signal option case Previously, when handling the reload action, the code used `docker kill -S HUP`. However, the Docker CLI only supports the lowercase `-s` option. Using `-S` results in an error and prevents the signal from being sent to the container process. This change: - Corrects `kill -S HUP` to `kill -s HUP` - Ensures that in Docker mode, the reload action can properly send the SIGHUP signal - Keeps the systemd branch logic unchanged --- app/modules/service/action.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/service/action.py b/app/modules/service/action.py index 6010ddeb..31e40b4e 100644 --- a/app/modules/service/action.py +++ b/app/modules/service/action.py @@ -56,7 +56,7 @@ def get_action_command(service: str, action: str, server_id: int) -> str: if is_docker == '1': container_name = sql.get_setting(f'{service}_container_name') if action == 'reload': - action = 'kill -S HUP' + action = 'kill -s HUP' commands = f"sudo docker {action} {container_name}" else: service_name = service_common.get_correct_service_name(service, server_id)