#!/bin/sh set -e # Automatically added by dh_installsystemd/13.28 if [ -z "$DPKG_ROOT" ] && [ "$1" = remove ] && [ -d /run/systemd/system ] ; then deb-systemd-invoke stop 'nut-logger.service' 'nut-monitor.service' 'nut.target' >/dev/null || true fi # End automatically added section # Automatically added by dh_installsystemd/13.28 if [ -z "$DPKG_ROOT" ] && [ "$1" = remove ] && [ -d /run/systemd/system ] ; then deb-systemd-invoke stop 'nut-logger.service' >/dev/null || true fi # End automatically added section # Automatically added by dh_installinit/13.28 if [ -z "$DPKG_ROOT" ] && [ "$1" = remove ] && [ -x "/etc/init.d/nut-client" ] ; then invoke-rc.d --skip-systemd-native nut-client stop || exit 1 fi # End automatically added section