gear: Add llama.service

This commit is contained in:
Vitaly Chikunov 2024-07-23 01:35:19 +03:00
parent 96edf3d3d6
commit c708ba46dc

14
.gear/llama.service Normal file
View file

@ -0,0 +1,14 @@
[Unit]
Description=Llama.cpp server, CPU only (no GPU support in this build).
After=syslog.target network.target local-fs.target remote-fs.target nss-lookup.target
[Service]
Type=simple
DynamicUser=true
EnvironmentFile=/etc/sysconfig/llama
ExecStart=%_bindir/llama-server $LLAMA_ARGS
ExecReload=/bin/kill -HUP $MAINPID
Restart=never
[Install]
WantedBy=default.target