# 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. ## Git pull des clones projet (utilisateur, pas root) Tirage **périodique** des dépôts listés dans `projects/*/conf.json` (voir [`../cron/README.md`](../cron/README.md)) : - Unités : [`user/git-pull-project-clones.service.in`](./user/git-pull-project-clones.service.in) + [`user/git-pull-project-clones.timer`](./user/git-pull-project-clones.timer) - Installation : [`../scripts/install-git-pull-systemd-user.sh`](../scripts/install-git-pull-systemd-user.sh) (écrit dans `~/.config/systemd/user/`, **sans** `sudo`) - Configuration : [`../cron/config.env`](../cron/config.env)