--- type: howto title: Running Ornith as a Systemd Service description: Set up llama.cpp server as a background service with systemd for persistent operation. tags: - unverified - ornith - systemd - service timestamp: 2026-07-18 verified: 2026-08-28 --- # Systemd Service ## Using nohup: ```bash nohup ~/GitPackages/llama.cpp/build/bin/llama-server \ -m ~/models/ornith/ornith-1.0-35b-Q4_K_M.gguf \ -c 131072 -ngl 12 \ --host 0.0.0.0 --port 8080 \ > ~/logs/llama-server.log 2>&1 & ``` ## Using systemd (advanced): Create `/etc/systemd/system/llama-server.service`: ```ini [Unit] Description=llama.cpp Server After=network.target [Service] Type=simple User=dank ExecStart=/home/dank/GitPackages/llama.cpp/build/bin/llama-server \ -m /home/dank/models/ornith/ornith-1.0-35b-Q4_K_M.gguf \ -c 131072 -ngl 12 \ --host 0.0.0.0 --port 8080 Restart=on-failure WorkingDirectory=/home/dank/GitPackages/llama.cpp [Install] WantedBy=multi-user.target ``` Then: ```bash sudo systemctl daemon-reload sudo systemctl enable llama-server sudo systemctl start llama-server ``` ## Related * [Installation](/tools/ornith-llama-cpp-setup/installation.md) — The server setup this service wraps