interplane.Get Omega
Read in your language

interplane-forge

INTERPLANE Forge

Brought by drakestapleton

branch main Branches Tags History

interplane-forge / infra / spark / interplane-open-intake.service

23 lines · 1144 bytes Raw Blame History
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]
8Description=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]
11Environment=OPEN_DIR=%h/forge-data/open/
12Environment=OPEN_WORK=%h/forge-open-work/
13Environment=INTAKE_DIR=%h/.local/lib/interplane-open/current
14ExecStart=/usr/bin/env -i ${INTAKE_DIR}/open-intake ${OPEN_DIR} ${OPEN_WORK}state ${OPEN_WORK} %h/.radicle/storage/ %h
15Restart=always
16RestartSec=5
17Nice=10
18CPUAffinity=4 5
19UMask=0077
20NoNewPrivileges=yes
21
22[Install]
23WantedBy=default.target