interplane-forge
INTERPLANE Forge
Brought by drakestapleton
interplane-forge / infra / spark / interplane-open-intake.service
| 1 | # INTERPLANE open-builds intake: seeds and fetches the Radicle projects people bring at /open/. |
| 2 | # Install and undo: docs/OPEN-BUILDS.md. The server (interplane-forged.service) is in a sandbox with |
| 3 | # no network and cannot run rad, so it only appends to <data>open/queue; this program reads that |
| 4 | # file once a second (a file is all the sandbox can leave), asks the Radicle node within limits and |
| 5 | # publishes <data>open/list.tsv. Its own list, the allow file and its state are in OPEN_WORK, |
| 6 | # outside the folder the server can write. It opens no socket and executes nothing it fetched. |
| 7 | [Unit] |
| 8 | Description=INTERPLANE open-builds intake: seed the Radicle projects people bring, within limits, and publish the shelf list (reads one queue file once a second) |
| 9 | |
| 10 | [Service] |
| 11 | Environment=OPEN_DIR=%h/forge-data/open/ |
| 12 | Environment=OPEN_WORK=%h/forge-open-work/ |
| 13 | Environment=INTAKE_DIR=%h/.local/lib/interplane-open/current |
| 14 | ExecStart=/usr/bin/env -i ${INTAKE_DIR}/open-intake ${OPEN_DIR} ${OPEN_WORK}state ${OPEN_WORK} %h/.radicle/storage/ %h |
| 15 | Restart=always |
| 16 | RestartSec=5 |
| 17 | Nice=10 |
| 18 | CPUAffinity=4 5 |
| 19 | UMask=0077 |
| 20 | NoNewPrivileges=yes |
| 21 | |
| 22 | [Install] |
| 23 | WantedBy=default.target |