1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
post_upgrade() { systemctl daemon-reload if systemctl --quiet is-active llama.cpp.service; then systemctl restart llama.cpp.service fi } post_remove() { systemctl daemon-reload } pre_remove() { systemctl disable --now llama.cpp.service >/dev/null 2>&1 || true }