This commit is contained in:
2026-01-23 02:44:16 -08:00
parent 04f22da50d
commit 7cf47e26de

View File

@@ -378,7 +378,19 @@ def install_service_systemd(
print(f"systemd user service '{service_name}' installed and started.") print(f"systemd user service '{service_name}' installed and started.")
return True return True
except subprocess.CalledProcessError as e: except subprocess.CalledProcessError as e:
print("Failed to create systemd user service:", e) err_msg = str(e)
print("Failed to create systemd user service:", err_msg)
if "user scope bus" in err_msg.lower():
print("systemd user bus unavailable; falling back to cron @reboot install.")
return install_service_cron(
service_name,
repo_root,
venv_py,
headless=headless,
detached=detached,
pull=pull,
workspace_root=workspace_root,
)
return False return False
except Exception as exc: except Exception as exc:
print("systemd install error:", exc) print("systemd install error:", exc)