[Unit] Description=Codex cloud monitor check (one-shot) After=network.target codex-cloud-server.service codex-cloud-worker.service [Service] Type=oneshot User=codexsvc WorkingDirectory=/opt/codex-app-server # monitor.sh 只做检查、不读 env 文件、不发消息;失败时 systemd 会把 # 退出码与输出记进 journal,告警通道见 deploy/README.md(另行决定)。 ExecStart=/bin/sh /opt/codex-app-server/deploy/monitor.sh [Install] WantedBy=multi-user.target