.
This commit is contained in:
@@ -134,7 +134,7 @@ async def restart_service():
|
|||||||
# Use subprocess.Popen with start_new_session=True
|
# Use subprocess.Popen with start_new_session=True
|
||||||
import subprocess
|
import subprocess
|
||||||
process = subprocess.Popen(
|
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,
|
stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.PIPE,
|
stderr=subprocess.PIPE,
|
||||||
start_new_session=True # This detaches the process
|
start_new_session=True # This detaches the process
|
||||||
|
|||||||
Reference in New Issue
Block a user