ci-repair-daemon.service
1 [Unit] 2 Description=CI Repair Daemon - Autonomous CI failure repair 3 Documentation=https://source.ac-dc.network/alpha-delta-network/alpha-delta-context 4 After=network.target 5 6 [Service] 7 Type=simple 8 User=devops 9 Group=devops 10 WorkingDirectory=/home/devops/working-repos/alpha-delta-context 11 12 # Environment configuration 13 Environment="CI_REPAIR_PORT=8765" 14 Environment="CI_REPAIR_HOST=0.0.0.0" 15 Environment="WORKING_REPOS_DIR=/home/devops/working-repos" 16 Environment="CI_REPAIR_LOG=/var/log/ci-repair-daemon.log" 17 Environment="CLAUDE_PATH=/home/devops/.local/bin/claude" 18 19 # Webhook secret loaded from file 20 EnvironmentFile=-/etc/ci-repair-daemon/secrets.env 21 22 # Run the daemon 23 ExecStart=/usr/bin/python3 /home/devops/working-repos/alpha-delta-context/tooling/ci-repair-daemon/ci_repair_daemon.py 24 25 # Restart on failure 26 Restart=on-failure 27 RestartSec=10 28 29 # Security hardening 30 NoNewPrivileges=true 31 ProtectSystem=strict 32 ProtectHome=read-only 33 ReadWritePaths=/var/log /home/devops/working-repos /home/devops/.claude 34 PrivateTmp=true 35 36 # Logging 37 StandardOutput=journal 38 StandardError=journal 39 SyslogIdentifier=ci-repair-daemon 40 41 [Install] 42 WantedBy=multi-user.target