[Unit] Description=Start chv-gitea-worker once the sync workspace exists (feat-chv-muse-p6) # round-12 修复轮第三轮(缺口 ①):worker 的 ReadWritePaths 含 # /home/chv/workspace,systemd 建 mount namespace 时该路径必须已 # 存在;工作区由 cloud-final 的 chv-sync boot 克隆出来,晚于 # multi-user.target 约 9 秒(R12 复测 2:worker 07:23:31 首启 # 226,工作区 07:23:40.40 才出现,5 次启动预算同一秒内耗尽)。 # 本单元只在工作区出现时触发服务启动——服务绝不在工作区出现前 # 启动,命名空间搭建前即有保证。须与服务的 ConditionPathExists # 配对:Condition 挡住开机那次过早启动(干净跳过、不 226),本 # 单元提供 Condition 本身没有的“出现后再试一次”。 # 不用 StartLimit 放宽(仍是时序赌博,wake 时间在负载下已翻倍, # 预算仍可能耗尽)与 tmpfiles 补行(/home/chv 本身晚于 # tmpfiles-setup,补了也没用),见服务单元 [Unit] 注释。 [Path] PathExists=/home/chv/workspace [Install] WantedBy=multi-user.target