postremove.sh

 1#!/bin/sh
 2set -e
 3
 4if ! command -V systemctl >/dev/null 2>&1; then
 5	echo "Not running SystemD, ignoring"
 6	exit 0
 7fi
 8
 9systemctl stop soft.service
10systemctl disable soft.service
11systemctl daemon-reload