#!/bin/sh -e if [ "$1" = "purge" ] ; then # to remain backwards-compatible with inetd and the like: if which update-inetd >/dev/null 2>&1; then update-inetd --remove '5667\t\tstream\ttcp\tnowait\tnagios\t/usr/sbin/tcpd\t/usr/sbin/nsca -c /etc/nsca.cfg -- inetd' || true fi fi # Automatically added by dh_installinit/13.11.9 if [ "$1" = "remove" ] && [ -x "/etc/init.d/nsca" ] ; then chmod -x "/etc/init.d/nsca" >/dev/null || true fi if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = "purge" ] ; then update-rc.d nsca remove >/dev/null fi # End automatically added section # Automatically added by dh_installsystemd/13.11.9 if [ "$1" = remove ] && [ -d /run/systemd/system ] ; then systemctl --system daemon-reload >/dev/null || true fi # End automatically added section # Automatically added by dh_installsystemd/13.11.9 if [ "$1" = "purge" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper purge 'nsca.service' >/dev/null || true fi fi # End automatically added section # Automatically added by dh_installdebconf/13.11.9 if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then . /usr/share/debconf/confmodule db_purge fi # End automatically added section