#!/bin/sh set -e # Stop service before removal if [ -d /run/systemd/system ]; then if systemctl is-active xxxig-proxy.service >/dev/null 2>&1; then systemctl stop xxxig-proxy.service fi if systemctl is-enabled xxxig-proxy.service >/dev/null 2>&1; then systemctl disable xxxig-proxy.service fi fi exit 0