#!/bin/sh # pre remove script for the Debian GNU/Linux oidentd package set -e if which update-inetd > /dev/null; then update-inetd --pattern "oidentd" --remove ident fi # Automatically added by dh_installsystemd/13.16 if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = remove ] && [ -d /run/systemd/system ] ; then deb-systemd-invoke stop 'oidentd.service' 'oidentd.socket' >/dev/null || true fi # End automatically added section # Automatically added by dh_installinit/13.16 if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = remove ] && [ -x "/etc/init.d/oidentd" ] ; then invoke-rc.d --skip-systemd-native oidentd stop || exit 1 fi # End automatically added section