.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user