Package Details: ollama-openrc 1.0.0-1

Git Clone URL: https://aur.archlinux.org/ollama-openrc.git (read-only, click to copy)
Package Base: ollama-openrc
Description: OpenRC init script for Ollama on Artix Linux
Upstream URL: https://aur.archlinux.org/packages/ollama-openrc
Licenses: MIT
Conflicts: ollama-openrc
Provides: ollama-openrc
Submitter: osimarr
Maintainer: osimarr
Last Packager: osimarr
Votes: 0
Popularity: 0.000000
First Submitted: 2026-04-03 04:52 (UTC)
Last Updated: 2026-04-03 04:52 (UTC)

Dependencies (4)

Required by (0)

Sources (2)

Latest Comments

rapidcow commented on 2026-05-14 10:21 (UTC)

On top of the previous comment, I suggest calling checkpath on ${OLLAMA_MODELS} instead of the hard- coded default "/var/lib/ollama/models":

diff --git a/ollama.initd b/ollama.initd
index 948d91e..055eb64 100644
--- a/ollama.initd
+++ b/ollama.initd
@@ -29,7 +29,7 @@ depend() {

 start_pre() {
    checkpath --directory --owner "${OLLAMA_USER}:${OLLAMA_GROUP}" --mode 0755 \
-       /var/lib/ollama /var/lib/ollama/models
+       "${OLLAMA_MODELS}"
    checkpath --file --owner "${OLLAMA_USER}:${OLLAMA_GROUP}" --mode 0640 \
        "${OLLAMA_LOG}"
 }

PKGBUILD already ensures that "/var/lib/ollama" is installed; removing it should work fine with the default ${OLLAMA_MODELS} on a new system.

ArkHost commented on 2026-05-12 23:03 (UTC)

Hi, the init script has a bug that prevents the service from starting. The line command_args_foreground="true" is not a valid OpenRC variable, but supervise-daemon picks it up and passes true as a positional argument to ollama serve, which only accepts zero args. Result: the daemon dies on startup with Error: accepts 0 arg(s), received 1 looping in the log, and rc-service ollama status shows "stopped" right after a successful-looking start. Reproduced on Artix Linux with ollama 0.23.2-1 and ollama-openrc 1.0.0-1. Fix: remove the command_args_foreground="true" line entirely. After removing it, the service starts cleanly and listens on the configured OLLAMA_HOST.