summarylogtreecommitdiffstats
path: root/xdroid-bin.install
blob: 6c7e6649c4e6497f7f276fb426e4f621d34cd51c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
pre_remove() {
    # 停止服务并禁用自启
    systemctl stop xdroid-manager.service >/dev/null 2>&1 || :
    systemctl disable xdroid-manager.service >/dev/null 2>&1 || :
}

post_remove() {
    # 强制删除服务文件
    rm -f /usr/lib/systemd/system/xdroid-manager.service

    # 重载systemd配置
    systemctl daemon-reload >/dev/null 2>&1 || :
}