save to not config
This commit is contained in:
7
app.py
7
app.py
@@ -152,7 +152,8 @@ def early_launch_configuration_mode():
|
|||||||
|
|
||||||
# Terminate any existing Chromium processes
|
# Terminate any existing Chromium processes
|
||||||
chromium_process_name = "chromium"
|
chromium_process_name = "chromium"
|
||||||
log_info_with_server("Refreshing Chromium process.")
|
# Local log only in configuration mode
|
||||||
|
logging.info("Refreshing Chromium process (configuration mode)")
|
||||||
try:
|
try:
|
||||||
subprocess.run(["pkill", "-f", chromium_process_name], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
subprocess.run(["pkill", "-f", chromium_process_name], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||||
time.sleep(5) # Wait for processes to terminate
|
time.sleep(5) # Wait for processes to terminate
|
||||||
@@ -163,9 +164,9 @@ def early_launch_configuration_mode():
|
|||||||
url],
|
url],
|
||||||
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, stdin=subprocess.DEVNULL, start_new_session=True
|
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, stdin=subprocess.DEVNULL, start_new_session=True
|
||||||
)
|
)
|
||||||
log_info_with_server("Chromium process restarted successfully.")
|
logging.info("Chromium process restarted successfully (configuration mode)")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log_info_with_server(f"Failed to refresh Chromium process: {e}")
|
logging.error(f"Failed to refresh Chromium process (configuration mode): {e}")
|
||||||
return False
|
return False
|
||||||
print("✅ Configuration mode launched successfully")
|
print("✅ Configuration mode launched successfully")
|
||||||
print("ℹ️ Network connectivity checks disabled")
|
print("ℹ️ Network connectivity checks disabled")
|
||||||
|
|||||||
Reference in New Issue
Block a user