#!/bin/sh set -e # dpkg passes "remove" here; rpm passes a numeric $1 (0 = last uninstall) - cover both. if { [ "$1" = "remove" ] || [ "$1" = "0" ]; } && [ -d /run/systemd/system ]; then systemctl stop nasmon.service >/dev/null 2>&1 || true systemctl disable nasmon.service >/dev/null 2>&1 || true systemctl disable --now wsdd.service >/dev/null 2>&1 || true fi exit 0