#!/bin/sh # llmsproxy core package prerm set -e if command -v systemctl >/dev/null 2>&1; then # stop the service if this package's unit is the one installed if systemctl list-unit-files llmsproxy.service >/dev/null 2>&1 && \ systemctl is-active llmsproxy.service >/dev/null 2>&1; then systemctl stop llmsproxy.service >/dev/null 2>&1 || true systemctl disable llmsproxy.service >/dev/null 2>&1 || true fi systemctl daemon-reload >/dev/null 2>&1 || true fi exit 0