This commit is contained in:
TCUDIKEL
2025-05-11 19:55:53 +03:00
parent 13b333024b
commit 7d7b9e5bd1

View File

@@ -134,7 +134,7 @@ async def restart_service():
# Use subprocess.Popen with start_new_session=True
import subprocess
process = subprocess.Popen(
["sudo", "supervisorctl", "restart", "llm-api-mcphost", "&&", "/usr/local/bin/gotify", "'mcphost service restarted'"],
["sudo", "supervisorctl", "restart", "llm-api-mcphost"],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
start_new_session=True # This detaches the process