Merge pull request #1 from e345/e345-patch-1

Update action.py : Redirect Docker command output to prevent Python hang
pull/425/head
e345 2025-09-22 15:42:31 +08:00 committed by GitHub
commit d7c07b75b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ def get_action_command(service: str, action: str, server_id: int) -> str:
container_name = sql.get_setting(f'{service}_container_name')
if action == 'reload':
action = 'kill -s HUP'
commands = f"sudo docker {action} {container_name}"
commands = f"sudo docker {action} {container_name} > /dev/null"
else:
service_name = service_common.get_correct_service_name(service, server_id)
commands = f"sudo systemctl {action} {service_name}"