d
This commit is contained in:
@@ -378,7 +378,19 @@ def install_service_systemd(
|
||||
print(f"systemd user service '{service_name}' installed and started.")
|
||||
return True
|
||||
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
|
||||
except Exception as exc:
|
||||
print("systemd install error:", exc)
|
||||
|
||||
Reference in New Issue
Block a user