central/systemd
Matt Johnson 614312db36 feat(gui): add FastAPI + Jinja2 + HTMX scaffold
- FastAPI app with Jinja2 templates and Pico CSS + HTMX from CDN
- Routes: GET / (placeholder page), GET /health (JSON healthcheck)
- systemd unit (no Install section - manual start only)
- TestClient tests for both endpoints

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-17 04:32:39 +00:00
..
.gitkeep scaffold: initial repository structure 2026-05-15 19:16:24 +00:00
central-archive.service docs: add systemd unit files with EnvironmentFile directive 2026-05-16 02:38:21 +00:00
central-gui.service feat(gui): add FastAPI + Jinja2 + HTMX scaffold 2026-05-17 04:32:39 +00:00
central-supervisor.service docs: add systemd unit files with EnvironmentFile directive 2026-05-16 02:38:21 +00:00
README.md docs: add systemd unit files with EnvironmentFile directive 2026-05-16 02:38:21 +00:00

Systemd Unit Files

These unit files configure Central services for systemd.

Installation

# Copy unit files
sudo cp central-supervisor.service /etc/systemd/system/
sudo cp central-archive.service /etc/systemd/system/

# Reload systemd
sudo systemctl daemon-reload

# Enable and start services
sudo systemctl enable --now central-supervisor
sudo systemctl enable --now central-archive

Configuration

Both services load environment variables from /etc/central/central.env:

CENTRAL_DB_DSN=postgresql://central:password@localhost/central
CENTRAL_NATS_URL=nats://localhost:4222
CENTRAL_CONFIG_SOURCE=db
CENTRAL_MASTER_KEY_PATH=/etc/central/master.key

Service Dependencies

  • central-supervisor: Requires NATS server
  • central-archive: Requires NATS server and PostgreSQL

Logs

journalctl -u central-supervisor -f
journalctl -u central-archive -f