Files
wangdefa b04d41d783
Build and Release / build-and-test (amd64) (push) Successful in 1m40s
Build and Release / build-and-test (arm64) (push) Successful in 1m40s
Build and Release / release (push) Failing after 4s
增加对 1GB Huge Pages 的支持,添加相关服务和配置,优化安装脚本
2026-08-05 12:50:18 +08:00

20 lines
574 B
Bash
Executable File

#!/bin/sh
set -e
# 仅在卸载(remove)时停用服务;升级(upgrade)时保持运行与开机自启状态
if [ "$1" = "remove" ] && [ -d /run/systemd/system ]; then
for service in xxxig-server.service xxxig-daemon.service xxxig-hugepages.service; do
if systemctl is-active --quiet "$service"; then
echo "Stopping $service..."
systemctl stop "$service"
fi
if systemctl is-enabled --quiet "$service"; then
echo "Disabling $service..."
systemctl disable "$service"
fi
done
fi
exit 0