mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-17 11:42:31 +02:00
Also fix segfault fetching models. The bug in httplib was fixed upstream; switch to using the system httplib instead of the vendored one. Fix OpenRC discarding logs for llama-server.
19 lines
430 B
Bash
19 lines
430 B
Bash
#!/sbin/openrc-run
|
|
|
|
description="HTTP Server for LLM inference"
|
|
command=/usr/bin/llama-server
|
|
: ${command_user:=llama-server:llama-server}
|
|
|
|
output_logger="logger -t llama-server -p daemon.info"
|
|
error_logger="logger -t llama-server -p daemon.info"
|
|
|
|
start_pre() {
|
|
if [ -z "${command_args}" ]; then
|
|
eerror "command_args not specified in /etc/conf.d/llama-server"
|
|
return 1
|
|
fi
|
|
}
|
|
|
|
no_new_privs="yes"
|
|
supervisor="supervise-daemon"
|