smart_ide/systemd/README.md
Nicolas Cantu 088eab84b7 Platform docs, services, ia_dev submodule, smart_ide project config
- Add ia_dev submodule (projects/smart_ide on forge 4nk)
- Document APIs, orchestrator, gateway, local-office, rollout
- Add systemd/scripts layout; relocate setup scripts
- Remove obsolete nginx/enso-only docs from this repo scope
2026-04-03 16:07:58 +02:00

40 lines
1.1 KiB
Markdown

# Systemd units
## Ollama
Installed by the [official Ollama Linux installer](https://ollama.com/download/linux). Unit: `ollama.service`.
Expose the API to Docker on the same host (AnythingLLM) with a drop-in:
```ini
# /etc/systemd/system/ollama.service.d/override.conf
[Service]
Environment="OLLAMA_HOST=0.0.0.0:11434"
```
Then: `sudo systemctl daemon-reload && sudo systemctl restart ollama`
Helper in repo: `../configure-ollama-for-docker.sh` writes this drop-in.
## AnythingLLM
- `anythingllm.service` — runs the official Docker image in the foreground under systemd (`Type=simple`).
- Defaults: `/etc/default/anythingllm` (copy from `anythingllm.default` if missing).
- Helper: `/usr/local/sbin/anythingllm-docker-exec.sh` (from `../scripts/anythingllm-docker-exec.sh`).
Install / refresh:
```bash
sudo ./scripts/install-systemd-services.sh
```
Commands:
```bash
sudo systemctl status anythingllm
sudo systemctl restart anythingllm
journalctl -u anythingllm -f
```
Requires `docker.service`, user `ncantu` in group `docker`, and paths in `/etc/default/anythingllm` for non-default storage.