summarylogtreecommitdiffstats
path: root/llama.cpp-git.install
blob: b3c14e385a542206bcf92f8ea86c60cb68e0cbbe (plain)
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
}